PHP replace special characters from a string
<p>I have <strong>clean</strong> function for remove special caracter from string but that function also removing Turkish caracter <em>(ı,ğ,ş,ç,ö)</em> from string </p>

<pre><code>function clean($string) {
   $string = str_replace(' ', ' ', $string); 
   $string = preg_replace('/[^A-Za-z0-9\-]/', ' ', $string); 

   return preg_replace('/-+/', '-', $string); 
}
</code></pre>

<p>How can I fix it ?</p>