PHP lcfirst() Function

The lcfirst() function converts the first character of a string to lowercase.

Related functions:

  • ucfirst() - converts the first character of a string to uppercase
  • ucwords() - converts the first character of each word in a string to uppercase
  • strtoupper() - converts a string to uppercase
  • strtolower() - converts a string to lowercase

Example -

ParameterDescription
stringRequired. Specifies the string to convert

Returns the resulting string.