(PHP3 >= 3.0.3, PHP4 )
ucwords --
Uppercase the first character of each word in a string
Description
string ucwords
(string str)
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().
Hosted by Tonec Inc.