PHP strtolower() Function

The strtolower() function in PHP is used to convert a string to lowercase.

This function is binary-safe. The related functions are as follows:

  • strtoupper()
  • lcfirst()
  • ucfirst()
  • ucwords()

Syntax

Parameter

string(required)– This parameter represents the input string.

Return

This function returns a string with all alphabetic characters converted to lowercase.

Example 1

Output

Example 2

Output

Example 3

Output