public function toAscii($value)
    {
        if (is_array($value) || is_object($value)) {
            foreach ($value as $_key => &$_value) {
                $_value = $this->toAscii($_value);
            } // unset($_key, $_value);
            return $value;
        }
        if (!($string = (string) $value)) {
            return $string; // Nothing to do.
        }
        return (string) transliterator_transliterate('Any-Latin; Latin-ASCII', $string);
    }
public function toAscii($value)
    {
        if (is_array($value) || is_object($value)) {
            foreach ($value as $_key => &$_value) {
                $_value = $this->toAscii($_value);
            } // unset($_key, $_value);
            return $value;
        }
        if (!($string = (string) $value)) {
            return $string; // Nothing to do.
        }
        return (string) transliterator_transliterate('Any-Latin; Latin-ASCII', $string);
    }
public function toAscii ( $ value ) { if ( is_array ( $ value ) || is_object ( $ value ) ) { foreach ( $ value as $ _key => & $ _value ) { $ _value = $ this -> toAscii ( $ _value ) ; } // unset($_key, $_value); return $ value ; } if ( ! ( $ string = ( string ) $ value ) ) { return $ string ; // Nothing to do. } return ( string ) transliterator_transliterate ( 'Any-Latin; Latin-ASCII' , $ string ) ; }
Convert to ASCII.

@since 150424 Multibyte support.

@param mixed $value Any input value.

@return string|array|object Output value.
Convert to ASCII .