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.
In reply to Re: Capitalize first letter in a string?
by autark
in thread Capitalize first letter in a string?
by gorenfeld
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |