Convert string to be all hyphenated-lowercase (aka kabab-case, hyphen-case, dash-case, etc.)
For example, "Hello World" or "helloWorld" becomes "hello-world".
Usage
// basic usage
$string = $sanitizer->hyphenCase(string $value);
// usage with all arguments
$string = $sanitizer->hyphenCase(string $value, array $options = []);
Arguments
Name | Type(s) | Description |
---|---|---|
value | string | |
options (optional) | array |
|
Return value
string
$sanitizer methods and properties
API reference based on ProcessWire core version 3.0.236