Yop, and if you want to handle any special characters, you need to declare them in the template, otherwise they can be reset. You can do it like this:
strtolower(preg_replace('/-+/', '-', preg_replace('/[^\wÑéΓΓ³ΓΊ]/', '-', $string)));
Pierre Voisin Jul 04 '12 at 14:33 2012-07-04 14:33
source share