Last active
November 27, 2016 21:04
-
-
Save lfbittencourt/881f55c2d95810568ed7 to your computer and use it in GitHub Desktop.
mb_ucfirst
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
<?php | |
function mb_ucfirst($value) | |
{ | |
return mb_strtoupper(mb_substr($value, 0, 1)) . mb_substr($value, 1); | |
} |
@Tecvid Haven't seen your comment before! You're right. I fixed function's name :-) Thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
maybe strtolower?
function mb_lcfirst($value)
{
return mb_strtolower(mb_substr($value, 0, 1)) . mb_substr($value, 1);
}
strtoupper for for the mb_ucfirst:
function mb_ucfirst($value)
{
return mb_strtoupper(mb_substr($value, 0, 1)) . mb_substr($value, 1);
}