UTILITY

kebab()

Convert text to kebab-case.

Signature

string kebab(string $text)

Example

kebab('Hello World'); // 'hello-world'

Available from: 1.5.0

Reference navigation

Previous: json_try_encode()

Next: mask()

Back to utilities