public static function clean_page_name($name)
    {
        $name = self::trim_extension_off($name);
        $name = self::trim_sort_number($name);

        $name = str_replace(array('-', '_'), ' ', $name);

        return ucfirst(trim($name));
    }
public static function clean_page_name($name)
    {
        $name = self::trim_extension_off($name);
        $name = self::trim_sort_number($name);

        $name = str_replace(array('-', '_'), ' ', $name);

        return ucfirst(trim($name));
    }
public static function clean_page_name ( $ name ) { $ name = self :: trim_extension_off ( $ name ) ; $ name = self :: trim_sort_number ( $ name ) ; $ name = str_replace ( array ( '-' , '_' ) , ' ' , $ name ) ; return ucfirst ( trim ( $ name ) ) ; }
String helper for cleaning a file name to a readable version.

@param string $name to convert

@return string $name output
String helper for cleaning a file name to a readable version .