public static function toAscii($text)
    {
        $encode = mb_detect_encoding($text, mb_detect_order(), true);
        return 'ASCII' === $encode ? $text : iconv($encode, 'ASCII//TRANSLIT//IGNORE', $text);
    }
public static function toAscii($text)
    {
        $encode = mb_detect_encoding($text, mb_detect_order(), true);
        return 'ASCII' === $encode ? $text : iconv($encode, 'ASCII//TRANSLIT//IGNORE', $text);
    }
public static function toAscii ( $ text ) { $ encode = mb_detect_encoding ( $ text , mb_detect_order ( ) , true ) ; return 'ASCII' === $ encode ? $ text : iconv ( $ encode , 'ASCII//TRANSLIT//IGNORE' , $ text ) ; }
Convert string to ASCII

@param string $text
@return string
Convert string to ASCII