public static function systemize($str, $infix = '-')
    {
        $str = self::ascii($str);
        return trim(
            preg_replace(
                '/' . preg_quote($infix, '/') . '+/',
                $infix,
                preg_replace('/[^\w-]+/', $infix, strtolower($str))
            ),
            $infix
        );
    }
public static function systemize($str, $infix = '-')
    {
        $str = self::ascii($str);
        return trim(
            preg_replace(
                '/' . preg_quote($infix, '/') . '+/',
                $infix,
                preg_replace('/[^\w-]+/', $infix, strtolower($str))
            ),
            $infix
        );
    }
public static function systemize ( $ str , $ infix = '-' ) { $ str = self :: ascii ( $ str ) ; return trim ( preg_replace ( '/' . preg_quote ( $ infix , '/' ) . '+/' , $ infix , preg_replace ( '/[^\w-]+/' , $ infix , strtolower ( $ str ) ) ) , $ infix ) ; }
Returns a systemized version of the string.

@param string $str
@param string $infix
@return string
Returns a systemized version of the string .