public static function Ucfirst($str)
    {
        return function_exists('ucfirst') ?
            ucfirst($str) :
            static::Upper(substr($str, 0, 1)).substr($str, 1);
    }
public static function Ucfirst($str)
    {
        return function_exists('ucfirst') ?
            ucfirst($str) :
            static::Upper(substr($str, 0, 1)).substr($str, 1);
    }
public static function Ucfirst ( $ str ) { return function_exists ( 'ucfirst' ) ? ucfirst ( $ str ) : static :: Upper ( substr ( $ str , 0 , 1 ) ) . substr ( $ str , 1 ) ; }
Change string's first character uppercase.

@param string $str

@return string
Change string s first character uppercase .