m7v
4/23/2014 - 6:25 AM

First word to Upper Case (Cyrillic)

First word to Upper Case (Cyrillic)

function mb_ucfirst($str, $encoding='UTF-8')
{
  $str = mb_ereg_replace('^[\ ]+', '', $str);
  $str = mb_strtoupper(mb_substr($str, 0, 1, $encoding), $encoding).
    mb_substr($str, 1, mb_strlen($str), $encoding);
  return $str;
}