dashToSeparator() public static method

Method to convert the string from dash to separator format
public static dashToSeparator ( string $string, string $sep = DIRECTORY_SEPARATOR ) : string
$string string
$sep string
return string
Esempio n. 1
0
 public function testDashToSeparator()
 {
     $this->assertEquals('hello' . DIRECTORY_SEPARATOR . 'world', String::dashToSeparator('hello-world'));
 }