openlss/func-url

URL helper functions such as shortname, urlanem

0.0.8 2013-03-27 03:35 UTC

This package is not auto-updated.

Last update: 2024-10-26 15:29:06 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