PHP ucwords() May 23, 2012 Pramod T P It converts the first character of each word in a string to uppercase Example <?php echo ucwords(“php code”); ?> Output Php Code