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_strtoupper(mb_substr($prenomEnMinuscule, 0, 1, 'utf8'), 'utf8').mb_substr($prenomEnMinuscule, 1, null, 'utf8'); echo $prenom.' '.mb_strtoupper($nom, 'utf8');
based on 2BuaY
Output for 5.4.8 - 5.6.21, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Éo marie chéarles LÉA MAJI
Output for 4.3.0 - 5.4.7
É LÉA MAJI