Converts a string to a slug
str_slug(string $string): stringstring
The input string
Returns the input string as a slug.
Example # 1 Example uses of str_slug()
echo str_slug('Some random sentence');The above example will output:
some-random-sentence