PHP strtolower() Function

The strtolower() function converts a string to lowercase.

Related functions:

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

Returns string with all alphabetic characters converted to lowercase. Note that 'alphabetic' is determined by the current locale. This means that e.g. in the default "C" locale, characters such as umlaut-A (Ä) will not be converted.

Example -

ParameterDescription
stringRequired. Specifies the string to convert

Returns the lowercased string.