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
strtolower ( string $string )
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
Actual String: PHP is an easy language to learn. After strtolower() function... New string: php is an easy language to learn.
Example 2
Output
email id: [email protected] After strtolower() function... email id: [email protected]
Example 3
Output
email id: After strtolower() function... email id: