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-11-09 15:44:49 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