removeAccent() public static method

Example: $string = "śżźćółŹĘÀÁÂ"; Result: 'szzcolZEAAA'
public static removeAccent ( string $string ) : string
$string string
return string
Ejemplo n.º 1
0
 /**
  * @test
  */
 public function shouldRemoveAccents()
 {
     //given
     $string = 'String with śżźćółŹĘ ÀÁÂ';
     //when
     $removeAccent = Strings::removeAccent($string);
     //then
     $this->assertEquals('String with szzcolZE AAA', $removeAccent);
 }