Home >>PHP String Functions >PHP strtolower() Function
PHP strtolower() function is used to convert a given input string into lowercase. It takes a input string as a parameter and converts all the uppercase english alphabets present in the input string to lowercase. All the other numeric characters or special characters present in the string remains as it is. It is binary-safe.
Syntax:
strtolower( $string );
Parameter | Description |
---|---|
string | This is a required parameter. This parameter defines the string to convert. |
Here is an example of strtolower() function in PHP:
<html> <body> <?php echo strtolower("PHPTPOINT"); ?> </body> </html>
Here is an another example of strtolower() function in PHP:
<html> <body> <?php $str = "Hello Everyone.. I am 21 Years Old!!"; echo strtolower($str); // Numeric & special chars remains same ?> </body> </html>