{% else-1 %}

                        
<?php
function seo($str, $replace=array(), $delimiter='-'){
setlocale(LC_ALL, 'en_US.UTF8');
if( !empty($replace) ) {
$str = str_replace((array)$replace, ' ', $str);
}else{
$trArr = array('?','?','?','?','?','?','?','?','?','?','?', '?');
$toArr = array('c','c','i','i','s','s','g','g','o','o','u', 'u');
$str = str_replace($trArr,$toArr,$str);
}


$clean = iconv('UTF-8', 'ASCII//TRANSLIT', $str);
$clean = preg_replace("/[^a-zA-Z0-9\/_|+ -]/", '', $clean);
$clean = mb_strtolower(trim($clean, '-'),'UTF-8');
$clean = preg_replace("/[\/_|+ -]+/", $delimiter, $clean);


return $clean;
}
?>
0 44 0
Без комментариев...