- ucwords: documentation ( source)
- strtolower: documentation ( source)
<?php
$nom = "doe";
$prenom = "john";
//echo $nom;
//$nom = ucwords(strtolower($nom));
//echo $nom;
$courrielBody = '<tr><td>';
$courrielBody .= 'Bonjour '. ucwords(strtolower($prenom.' '.$nom)).', <br /><br />';
echo $courrielBody;
?>