in reply to Capitalize first letter in a string?
This will print "To my beloved wife". You shouldn't have to test for lowercase as ucfirst will not mangle any characters already in uppercase.$string = "to my beloved wife"; $string = ucfirst $string; print $string;
Autark.
|
|---|