3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $nom = "Märie Du jean Grénaille"; $nomfilter = array(" ","ÁÀÂÄÃÅÇÉÈÊËÍÏÎÌÑÓÒÔÖÕÚÙÛÜÝ","áàâäãåçéèêëíìîïñóòôöõúùûüýÿ"); $nomremplacement = array("_","AAAAAACEEEEEIIIINOOOOOUUUUY","aaaaaaceeeeiiiinooooouuuuyy"); $nom = str_replace($nomfilter, $nomremplacement, $nom); echo $nom;
based on sWk77
Output for 4.3.0 - 7.2.0
Märie_Du_jean_Grénaille