Capitalize in php
<?php $foo = 'bonjour tout le monde!'; $foo = ucfirst($foo); // Bonjour tout le monde! $bar = 'BONJOUR TOUT LE MONDE!'; $bar = ucfirst($bar); // BONJOUR TOUT LE MONDE! $bar = ucfirst(strtolower($bar)); // Bonjour tout le monde! ?>