toAscii() public method

Transliterate a UTF-8 value to ASCII.
public toAscii ( boolean $removeUnsupported = true ) : string
$removeUnsupported boolean Whether or not to remove the unsupported characters
return string
示例#1
0
 public function testToAscii()
 {
     $str = new StringWrapper('camión');
     $this->assertEquals('camion', $str->toAscii());
     $str = new StringWrapper('españa');
     $this->assertEquals('espana', $str->toAscii());
 }