function slugify($text) { // replace non letter or digits by - // trim // transliterate if (function_exists('iconv')) { $text = iconv('utf-8', 'us-ascii//TRANSLIT', $text); } // lowercase // remove unwanted characters return $text; }
Jak to zrobić?