public static function toAscii($str)
    {
        $methods = array(
            '_intlToAscii',
            '_iconvToAscii',
            '_fallbackToAscii'
        );

        foreach ($methods as $val) {
            if (($out = call_user_func(array(__CLASS__, $val), $str)) !== false) {
                return $out;
            }
        }

        return $str;
    }
public static function toAscii($str)
    {
        $methods = array(
            '_intlToAscii',
            '_iconvToAscii',
            '_fallbackToAscii'
        );

        foreach ($methods as $val) {
            if (($out = call_user_func(array(__CLASS__, $val), $str)) !== false) {
                return $out;
            }
        }

        return $str;
    }
public static function toAscii ( $ str ) { $ methods = array ( '_intlToAscii' , '_iconvToAscii' , '_fallbackToAscii' ) ; foreach ( $ methods as $ val ) { if ( ( $ out = call_user_func ( array ( __CLASS__ , $ val ) , $ str ) ) !== false ) { return $ out ; } } return $ str ; }
Transliterates an UTF-8 string to ASCII, replacing non-English
characters to their English equivalents.

Note: there is no guarantee that the output string will be ASCII-only,
since any non-ASCII character not in the transliteration list will
be ignored.

@param string $str  Input string (UTF-8).

@return string  Transliterated string (UTF-8).
Transliterates an UTF - 8 string to ASCII replacing non - English characters to their English equivalents .