public static function clean_page_url($name)
    {
        $name = str_replace(array(' '), '_', $name);

        $name = self::trim_extension_off($name);
        $name = self::trim_sort_number($name);

        if (preg_match('/^[\/]?index[\/]?/', $name)) {
            return '';
        }

        return strtolower($name);
    }
public static function clean_page_url($name)
    {
        $name = str_replace(array(' '), '_', $name);

        $name = self::trim_extension_off($name);
        $name = self::trim_sort_number($name);

        if (preg_match('/^[\/]?index[\/]?/', $name)) {
            return '';
        }

        return strtolower($name);
    }
public static function clean_page_url ( $ name ) { $ name = str_replace ( array ( ' ' ) , '_' , $ name ) ; $ name = self :: trim_extension_off ( $ name ) ; $ name = self :: trim_sort_number ( $ name ) ; if ( preg_match ( '/^[\/]?index[\/]?/' , $ name ) ) { return '' ; } return strtolower ( $ name ) ; }
String helper for cleaning a file name to a URL safe version.

@param string $name to convert

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