Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 378 Bytes

File metadata and controls

31 lines (19 loc) · 378 Bytes

Description

Converts a string to snake case

str_case_snake(string $string): string

Parameters

string

The input string

Returns

Returns the input string in snake case.

Examples

Example # 1 Example uses of str_case_snake()

echo str_case_snake('Some random sentence');

The above example will output:

some_random_sentence