Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 352 Bytes

File metadata and controls

31 lines (19 loc) · 352 Bytes

Description

Converts a string to a slug

str_slug(string $string): string

Parameters

string

The input string

Returns

Returns the input string as a slug.

Examples

Example # 1 Example uses of str_slug()

echo str_slug('Some random sentence');

The above example will output:

some-random-sentence