3v4l.org

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