3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = "Gironde numérique"; $string = strtolower($string); $string = strtr($string,'àáâãäçèéêëìíîïñòóôõöùúûüýÿÀÁÂÃÄÇÈÉÊËÌÍÎÏÑÒÓÔÕÖÙÚÛÜÝ','aaaaaceeeeiiiinooooouuuuyyAAAAACEEEEIIIINOOOOOUUUUY'); $string = preg_replace("/[^A-Za-z0-9]/", '', $string); $string = preg_replace('/\s+/', '_', $string); echo "gn_" . $string;
Output for 4.3.0 - 7.2.0
gn_girondenumYorique