Do you know is there any function in PHP to make the first character of the word uppercase? Or must I write it by regular expression?
Beat me by five secs. Heh.
Arne Sostack
2010-03-25 14:26:29
ah, it's so simple:) thanks
Syom
2010-03-25 14:28:08
On a side note ucfirst relies on locale so watch your step
Manos Dilaverakis
2010-03-25 14:38:39
ucwords() will capitalize each word in the string, not just the first letter. Maybe that is what the original poster wanted, not sure. Voted up for benefit of the doubt.
Arne Sostack
2010-03-25 14:30:25
+1
A:
$firstlettersuppercased = ucwords($originalstring);
This will capitalize the first letter of every word in the $originalstring.
vicatcu
2010-03-25 14:27:08