public static function mb_ucfirst($str, $encoding = 'UTF-8')
    {
        $length = mb_strlen($str, $encoding);
        $firstChar = mb_substr($str, 0, 1, $encoding);
        $then = mb_substr($str, 1, $length - 1, $encoding);

        return mb_strtoupper($firstChar, $encoding) . $then;
    }
public static function mb_ucfirst($str, $encoding = 'UTF-8')
    {
        $length = mb_strlen($str, $encoding);
        $firstChar = mb_substr($str, 0, 1, $encoding);
        $then = mb_substr($str, 1, $length - 1, $encoding);

        return mb_strtoupper($firstChar, $encoding) . $then;
    }
public static function mb_ucfirst ( $ str , $ encoding = 'UTF-8' ) { $ length = mb_strlen ( $ str , $ encoding ) ; $ firstChar = mb_substr ( $ str , 0 , 1 , $ encoding ) ; $ then = mb_substr ( $ str , 1 , $ length - 1 , $ encoding ) ; return mb_strtoupper ( $ firstChar , $ encoding ) . $ then ; }
This function is missing in PHP for now.

@param string $str
@param string $encoding
@return string
This function is missing in PHP for now .