between() public static method

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
return string
Exemplo n.º 1
0
 public function testBetween()
 {
     $this->assertEquals('world', String::between('hello -world* test', '-', '*'));
 }