Home > Article > Backend Development > How to convert strings from uppercase to lowercase in PHP?
In PHP, you can use the strtolower() function to convert strings from uppercase to lowercase. The strtolower() function is used to convert a string to lowercase; the syntax is "strtolower(string)", the parameter string specifies the string to be converted; and then returns the string converted to lowercase.
The strtolower() function converts all characters in the passed string parameter to lowercase and puts the string back in decimal form.
Note: This function is binary safe.
PHP version : 4
Related functions:
Syntax
strtolower(string)Parameters:
Return value: Returns the string converted to lowercase.
Example:
<?php $str = "I want To FLY"; $str = strtolower($str); echo $str; ?>Output:
i want to flyRelated tutorial recommendations: "
PHP Tutorial"
The above is the detailed content of How to convert strings from uppercase to lowercase in PHP?. For more information, please follow other related articles on the PHP Chinese website!