(PHP 3>= 3.0.3, PHP 4 >= 4.0.0)
string ucwords (string str)
string ucwords
Maakt van het eerste karakter van elk woord in str als dit karakter alfabetisch is.
Voorbeeld 1. ucwords() voorbeeld
$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.
Zie ook strtoupper(), strtolower() en ucfirst().