public static function transliterate($text, $separator = '-')
    {
        if (preg_match('/[\x80-\xff]/', $text) && self::validUtf8($text)) {
            $text = self::utf8ToAscii($text);
        }

        return  self::postProcessText($text, $separator);
    }
public static function transliterate($text, $separator = '-')
    {
        if (preg_match('/[\x80-\xff]/', $text) && self::validUtf8($text)) {
            $text = self::utf8ToAscii($text);
        }

        return  self::postProcessText($text, $separator);
    }
public static function transliterate ( $ text , $ separator = '-' ) { if ( preg_match ( '/[\x80-\xff]/' , $ text ) && self :: validUtf8 ( $ text ) ) { $ text = self :: utf8ToAscii ( $ text ) ; } return self :: postProcessText ( $ text , $ separator ) ; }
Uses transliteration tables to convert any kind of utf8 character.

@param string $text
@param string $separator

@return string $text
Uses transliteration tables to convert any kind of utf8 character .