Created
November 20, 2015 07:29
-
-
Save d30jeff/55d31ea98f62212e077b to your computer and use it in GitHub Desktop.
Reverse Thingy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $string = "Ram Is Good Boy"; | |
| $reversed = implode(" ", array_map('ucfirst', ( array_reverse( explode(" ", strrev(strtolower($string))))) )); | |
| echo $reversed; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment