func-url

func-url

URL related functions (shortname, urlname, etc)

Usage

$name = 'This Page';
$urlname = urlname($name); //returns this-page
$shortname = shortname($name); //returns thispage

Reference

(string) urlname($name)

Equivalent of strtolower and replace all spaces with -

(string) shortname($name)

Strips all non alpha-numeric characters

Languagephp
Version0.0.0
Git URLhttps://github.com/nullivex/func-url
LicenseGPL-3.0
DescriptionURL related functions (shortname, urlname, etc)
Keywords