Created
November 1, 2013 05:21
-
-
Save steppefox/7261251 to your computer and use it in GitHub Desktop.
PHP snippet for lowing word with first big character
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
public function lowThatWord( $word ) | |
{ | |
return mb_strtoupper( mb_substr( $word, 0, 1, 'UTF-8' ), 'UTF-8' ).mb_strtolower( mb_substr( $word, 1, mb_strlen( $word, 'UTF-8' ), 'UTF-8' ), 'UTF-8' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment