src/Util/Utf8String.php
public function toAscii()
    {
        if (0 === \preg_match('#[\x80-\xff]#', $this->_string)) {
            return $this;
        }

        $this->_string = Strings::toAscii($this->_string);

        return $this;
    }
public function toAscii()
    {
        if (0 === \preg_match('#[\x80-\xff]#', $this->_string)) {
            return $this;
        }

        $this->_string = Strings::toAscii($this->_string);

        return $this;
    }
public function toAscii ( ) { if ( 0 === \ preg_match ( '#[\x80-\xff]#' , $ this -> _string ) ) { return $ this ; } $ this -> _string = Strings :: toAscii ( $ this -> _string ) ; return $ this ; }
Transform a UTF-8 string into an ASCII one.

@return  self
@throws  \Exception
Transform a UTF - 8 string into an ASCII one .