<?php $text = "marie a un petit agneau, et l'adore."; $text = ucwords($text); // $text vaut : Marie A Un Petit Agneau, Et l'Adore. ?>
Note
La définition d'un mot est : une chaîne de caractères
immédiatement après un caractère blanc (c'est-à-dire :
espace, form-feed, nouvelle ligne, retour chariot, tabulation horizontale,
et tabulation verticale).