between() public static méthode

Method to return a substring of the string between two delimiters.
public static between ( string $string, integer $start, integer $end ) : string
$string string
$start integer
$end integer
Résultat string
Exemple #1
0
 public function testBetween()
 {
     $this->assertEquals('world', String::between('hello -world* test', '-', '*'));
 }