class Str

Methods

static string
slug(string $str)

<p>Create a slug out of the given string.</p>

Details

static string slug(string $str)

<p>Create a slug out of the given string.</p>

<p>Non-alphanumeric characters are converted to hyphens.</p>

Parameters

string $str

Return Value

string