slug-separator. Default to -. * * @param $value string Value to convert * @return string The slugify version. */ public static function slugify($value) { $separator = Pluf::f('slug-separator', '-'); $value = Pluf_Text_UTF8::romanize(Pluf_Text_UTF8::deaccent($value)); $value = preg_replace('#[^'.$separator.'\w]#u', $separator, mb_strtolower($value, Pluf::f('encoding', 'UTF-8'))); // remove redundant $value = preg_replace('#'.$separator.'{2,}#u', $separator, trim($value, $separator)); return $value; } }