How do I convert string to lowercase in PHP?

To convert a string to lowercase in PHP, you can use the strtolower(string) function. The strtolower() function takes a string as a parameter and converts all uppercase letters of the English alphabet present in the string to lowercase. To convert non-English characters to lowercase, you can use the mb_strtolower() function instead. All other numeric characters or special characters in the string are left unchanged. In this PHP convert a string into a lowercase example, we are converting a string to lowercase using the strtolower() function. Click Execute to run the PHP Lowercase String Example online and see the result.
Loading...