@ivanhoe, u pravu si, uzeo sam prvi koji mi je bio "pri ruci"
http://stackoverflow.com/questions/5...511580#5511580
E ovaj koristim za naša slova i nemam problema...
PHP kôd:
function google($input){
setlocale(LC_ALL, "en_US.UTF8");
$input = str_replace(array("'", "-", "đ"), array("", "", "dj"), $input);
$input = mb_convert_case($input, MB_CASE_LOWER, "UTF-8");
$input = iconv("UTF-8", "ASCII//TRANSLIT", $input);
$input = preg_replace("#[^a-zA-Z0-9]+#", "-", $input);
$input = preg_replace("#(-){2,}#", "$1", $input);
$input = trim($input, "-");
return $input;
}
A za ovaj preg_replace, *biga, opsesija