Skip to content

kebabCase ​

Convert the string to kebabCase.

php
Twine\Str::kebabCase( void ) : Twine\Str

Examples ​

php
$string = new Twine\Str('john pinkerton');

$string->kebabCase(); // Returns 'john-pinkerton'