Converts a string to snake case
str_case_snake(string $string): stringstring
The input string
Returns the input string in snake case.
Example # 1 Example uses of str_case_snake()
echo str_case_snake('Some random sentence');The above example will output:
some_random_sentence