October 2005
Intermediate to advanced
372 pages
11h 35m
English
ucwords()
string ucwords ( string str )The ucwords() function takes one string parameter and 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);In that example, $a will be set to "I Like To Program In PHP".