Created
June 24, 2021 21:23
-
-
Save medeirosinacio/13cc149ca331d8c56549ae1143f4c634 to your computer and use it in GitHub Desktop.
This file contains 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
/** | |
* Simple multi-bytes ucfirst() | |
* @param $str | |
* @return string | |
*/ | |
function mb_ucfirst_fix($str) | |
{ | |
return mb_strtoupper(mb_substr($str, 0, 1)) . mb_substr(mb_strtolower($str), 1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment