11 lines
191 B
PHP
11 lines
191 B
PHP
<?php
|
|
|
|
function mb_ucfirst($str) {
|
|
if (preg_match('#^.#u',$str,$matches)===1) {
|
|
$first=mb_strtoupper($matches[0],'UTF-8');
|
|
$str=preg_replace('#^.#u',$first,$str);
|
|
}
|
|
return $str;
|
|
}
|
|
|
|
?>
|