PHP ucfirst() & lcfirst() Functions

lcfirst(string) — This PHP function returns a string with the first character of the input string converted to lowercase.

ucfirst(string) — This PHP function returns a string with the first character of the input string converted to uppercase.

Try it here. Enter your string below to see the function in action:

e.g. An input of 'good evening!' will produce
'good evening!' for ucfirst() and an input of 'Good Evening!'
will produce 'good Evening!' for lcfirst().



Function Results
Test String:
ucfirst() Resulting String:
lcfirst() Resulting String:
(Function lcfirst() currently not available.)