Converts a string to kebab case
str_case_kebab(string $string): string
string
The input string
Returns the input string in kebab case.
Example # 1 Example uses of str_case_kebab()
echo str_case_kebab('Some random sentence');
The above example will output:
some-random-sentence