Generate a URL friendly 'slug' from the given string
str_slug generates url friendly slug
from the given string.
Features
- full unicode support.
- ability to append/prepend a hash of the given value to the generated slug.
Options
Usage
let sentence = "quick brown fox jumps over the lazy dog";
let slug = slug;
// quick-brown-fox-jumps-over-the-lazy-dog
with a hash
let sentence = "quick brown fox jumps over the lazy dog";
let slug = slug_hash;
// quick-brown-fox-jumps-over-the-lazy-dog_ce2907