(PHP3 >= 3.0.3, PHP4 )
string ucwords (string str)
string ucwords
Capitalizes the first character of each word in str if that character is alphabetic.
Example 1. ucwords() example
$text = "mary had a little lamb and she loved it so."; $text = ucwords($text); // $text is now: Mary Had A Little // Lamb And She Loved It So.
See also strtoupper(), strtolower() and ucfirst().