3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $prenom = 'éo marie chéarles'; $nom = 'Léa Maji'; $prenomEnMinuscule = mb_strtolower($prenom, 'utf8'); $prenom = mb_substr($prenomEnMinuscule, 0, 1, 'utf8').mb_substr($prenomEnMinuscule, 1, strlen($prenom), 'utf8'); echo $prenom.' '.mb_strtoupper($nom, 'utf8');
based on HfKA5
Output for 4.3.0 - 7.1.0
éo marie chéarles LÉA MAJI