Last active
February 8, 2020 08:13
-
-
Save reanim8ed/fa7bce4fa38a95e44d480466b98878aa to your computer and use it in GitHub Desktop.
[Capital first in string with UTF support] #php
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_strtoupper(mb_substr($string, 0, 1)).mb_strtolower(mb_substr($string, 1)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment