src/Str.php
public static function title($string)
    {
        $stringr = $string[0].preg_replace('@[_-]|([A-Z])@', ' $1', substr($string, 1));
        return ucfirst(strtolower($stringr));
    }
public static function title($string)
    {
        $stringr = $string[0].preg_replace('@[_-]|([A-Z])@', ' $1', substr($string, 1));
        return ucfirst(strtolower($stringr));
    }
public static function title ( $ string ) { $ stringr = $ string [ 0 ] . preg_replace ( '@[_-]|([A-Z])@' , ' $1' , substr ( $ string , 1 ) ) ; return ucfirst ( strtolower ( $ stringr ) ) ; }
Convert camel cases, underscore and hyphen separated strings to human
format.

@param $string
@return string
Convert camel cases underscore and hyphen separated strings to human format .