es linkus veidoju šādi
function fuckchars($str){
$chars=array('ā"=>"a","č"=>"c","ē"=>"e","ģ"=>"g","ī"=>"i","ķ"=>"k","ļ"=>"l","ņ"=>"n","š"=>"s","ū"=>"u","ž"=>"z"," "=>"_",);
$str=strtolower($str);
$str=strtr($str,$chars);
$str=ereg_replace("[^a-z0-9_]","",$str);
return $str;
}