buyur dostum bunu kullan gayet güzel.


function sefcevir($str) {
$str = str_replace(
array(
htmlspecialchars_decode('İ'),
htmlspecialchars_decode('ı')
),
array('i','i'),
$str);
$str = preg_replace('#[^\p{L}\p{N}]+#u','__',$str);
$str = @iconv("UTF-8","ASCII//TRANSLIT//IGNORE",$str);
$str = preg_replace('#[^\p{L}\p{N}\__]+#u','',$str);
$str = str_replace('_',' ',$str);
$str = preg_replace('~\s+~',' ',$str);
$str = trim($str);
$str = mb_strtolower($str);
$str = str_replace(' ','-',$str);
return $str;
}