Last active
December 14, 2017 16:14
-
-
Save timoschinkel/2fea9788115331e999e13c878d42caf8 to your computer and use it in GitHub Desktop.
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 | |
function mb_ucfirst($string) { | |
return mb_convert_case(mb_substr($string, 0, 1), MB_CASE_UPPER) . mb_substr($string, 1); | |
} | |
function mb_ucwords($string) { | |
return mb_convert_case($string, MB_CASE_TITLE); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment