Dik tim preg_replace jste mi pomohli. Uz jsem to vymyslel.
$string=strtolower($string);
$vem =array("á","è","ï","ì","é","í","ò","ó","ø","š","","ú","ù","ý","ž");
$nahrad =array("a","c","d","e","e","i","n","o","r","s","t","u","u","y","z");
$string = str_replace($vem,$nahrad, $string);
$string = ereg_replace("[[:punct:]]"," ",$string);
$string = ereg_replace("[[:space:]]","-",$string);