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
コード例 #1
0
ファイル: StringTest.php プロジェクト: nicksagona/PopPHP
 public function testBetween()
 {
     $this->assertEquals('world', String::between('hello -world* test', '-', '*'));
 }