How to convert a string into lowercase in php: You can use the built-in function strtolower() to convert. The strtolower() function can convert all uppercase letters in a string to lowercase, such as [strtolower("Hello WORLD.")].
strtolower() function converts a string to lowercase.
(Recommended tutorial: php video tutorial)
Grammar:
strtolower(string)
Example:
<?php echo strtolower("Hello WORLD."); ?>
Running results:
hello world.
Related recommendations: php training
The above is the detailed content of How to convert string to lowercase in php. For more information, please follow other related articles on the PHP Chinese website!