toSlugCase
Converts the string into an URL slug.
Description
static toSlugCase(string $replacement = '-', string $language = 'en', bool $strToLower = 1)
This includes replacing non-ASCII characters with their closest ASCII equivalents, removing remaining non-ASCII and non-alphanumeric characters, and replacing whitespace with $replacement.
The replacement defaults to a single dash and the string is also converted to lowercase.
Parameters
-
string $replacement
The string used to replace whitespace -
string $language
The language for the url - bool $strToLower
string to lower
Return Value
static