slug
Function
Converts text to a URL-friendly slug (lowercase, hyphens, no special chars)
Syntax
$url = slug $title
convert variable to slug
$url = slug "Hello World!"
convert literal to slug
Converts text to a URL-friendly slug (lowercase, hyphens, no special chars)
$url = slug $title
convert variable to slug
$url = slug "Hello World!"
convert literal to slug