Może komuś się spodoba:
function translate($text) {
$find = array('.',',',';','-','?','!','+','@','\'',':',')','(');
$text = str_replace($find, '', $text);
$find = array('ą','ę','ć','ń','ż','ó','ś','ź','ł');
$replace = array('a','e','c','n','z','o','s','z','l');
$text = str_replace($find, $replace, $text);
$text = trim($text);
$text = eregi_replace("[^a-z0-9_]","-",strtolower($text));
return $text;
}
-
bananowski:
Pokaż wszystkie (1) ›