PHP clean function not working correctly

I created a clean function in PHP for a project to help construct useful URLs from database content. It removes any spaces and special characters, so that a sentence like "My Mot?rhead Albums" becomes in the URL my-motoerhead-albums. However, it seems to not correctly convert the umlauts like ?,?,
 
Back
Top