removePrefixes() публичный статический Метод

Example: $string = 'prefixRest'; $withoutPrefix = Strings::removePrefixes($string, array('pre', 'fix')); Result: Rest
public static removePrefixes ( string $string, array $prefixes ) : mixed
$string string
$prefixes array
Результат mixed
Пример #1
0
 /**
  * @test
  */
 public function shouldRemovePrefixes()
 {
     //given
     $string = 'prefixRest';
     //when
     $withoutPrefix = Strings::removePrefixes($string, array('pre', 'fix'));
     //then
     $this->assertEquals('Rest', $withoutPrefix);
 }