Last active
October 2, 2017 19:56
-
-
Save devuri/8b9bf5e71ae3650845e0d1552ec45d6b to your computer and use it in GitHub Desktop.
Upper Caser converts the first character of each word in a string to uppercase
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 to lowercase | |
| $text = strtolower('HELLO WORLD'); | |
| //converts the first character of each word in a string to uppercase | |
| echo ucwords($text); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment