function clean_seo_text( $text, $slash=true ) {
    $entities_match        = array(' ','--','&quot;','!','@','#','%','^','&','*','_','(',')','+','{','}','|',':','"','<','>','?','[',']','\\',';',"'",',','.','/','*','+','~','`','=');
    $entities_replace   = array('-','-','','','','','','','','','','','','','','','','','','','','','','','','');
$clean_text             = str_replace($entities_match, $entities_replace, $text);
//        $clean_text         = preg_replace('/[^a-zA-Z0-9\-]/', '', $clean_text);
    if ( $clean_text != '' )
        $slash              = ( $slash ) ? '/' : NULL;
    
    return $slash . $clean_text;
}
orjinali bu şekilde ben
function clean_seo_text( $text, $slash=true ) {
    $entities_match        = array(' ','--','&quot;','!','@','#','%','^','&','*','_','(',')','+','{','}','|',':','"','<','>','?','[',']','\\',';',"'",',','.','/','*','+','~','`','=');
    $entities_replace   = array('-','-','','','','','','','','','','','','','','','','','','','','','','','','');
    $string  = strtr($string, "ŞsÜüÖöĞğıÇç", "ssuuooggicc"); 
$clean_text             = str_replace($entities_match, $entities_replace, $text, $string);
//        $clean_text         = preg_replace('/[^a-zA-Z0-9\-]/', '', $clean_text);
    if ( $clean_text != '' )
        $slash              = ( $slash ) ? '/' : NULL;
    
    return $slash . $clean_text;
}
bu şekilde değiştirdim fakat çözülmedi yardımcı olabilecek var mı?