jou, potrebujem spravit prevod nadpisu na pekne citatelny format do url (SEO), vypotil som asik takyto code:
$title_url = strtolower($title); // male pismenka
$title_url = ereg_replace("[á|ä]","a",$title_url); // odstranenie diakritiky
$title_url = ereg_replace("č","c",$title_url);
$title_url = ereg_replace("ď","d",$title_url);
$title_url = ereg_replace("[é|ě]","e",$title_url);
$title_url = ereg_replace("í","i",$title_url);
$title_url = ereg_replace("[ĺ|ľ]","l",$title_url);
$title_url = ereg_replace("ň","n",$title_url);
$title_url = ereg_replace("[ó|ô]","o",$title_url);
$title_url = ereg_replace("[ŕ|ř]","r",$title_url);
$title_url = ereg_replace("š","s",$title_url);
$title_url = ereg_replace("ť","t",$title_url);
$title_url = ereg_replace("[ú|ů]","u",$title_url);
$title_url = ereg_replace("ý","y",$title_url);
$title_url = ereg_replace("ž","z",$title_url);
$title_url = ereg_replace("[^a-z0-9]+","-",$title_url); // nahradi vsetko okrem a-z0-9 za "-"
$title_url = ereg_replace("(.*)-$","\\1",$title_url); // ak je nakonci "-" tak ju vyhodi
robi to napr z tohto: Káble (FTP, UTP, telefónne) toto: kable-ftp-utp-telefonne
ten postup sa mi vsak zda, ...kapik nahlavu... preto sa chcem opytat na nejaky rozumnejsi sposob.
Vopred thanx ;-)