Example #1
0
 /**
  * Converts string to a slug, i.e. a lowercase string where non-url friendly characters are replaced with a
  * hyphen
  *
  * Taken from http://sourcecookbook.com/en/recipes/8/function-to-slugify-strings-in-php
  *
  * @param $text     The variable to be cast
  *
  * @return string
  */
 public function slug($text)
 {
     return TextFunction::toSlug($text, false);
 }