openlss/func-url

URL helper functions such as shortname, urlanem


Keywords
url, urlname, shortname
License
LGPL-3.0+

Documentation

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