Method to convert the string from under_score to dash format
public static underscoreToDash ( string $string ) : string | ||
$string | string | |
return | string |
public function testUnderscoreToDash() { $this->assertEquals('hello-world', String::underscoreToDash('hello_world')); }