openlss / func-url
URL helper functions such as shortname, urlanem
0.0.8
2013-03-27 03:35 UTC
Requires
- php: >=5.3.2
This package is not auto-updated.
Last update: 2024-12-21 16:15:01 UTC
README
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