string ucwords ( string str ) converts the first letter of each word in the string to an uppercase character, leaving the others untouched.
<? $string = "i like to program in PHP"; $a = strtoupper($string); ?>