In PHP, you can use the strtolower() function to convert letters to lowercase, the syntax is "strtolower(string)". The strtolower() function converts all alphabetic characters in a string to lowercase and returns them.
The operating environment of this tutorial: windows7 system, PHP7.1 version, DELL G3 computer
strtolower function: This function will pass in the characters All characters in string parameters are converted to lowercase.
<?php $str = "I want To FLY"; $str = strtolower($str); echo $str; //by www.jb51.net ?>
Output:
i want to fly
Recommended: "2021 PHP interview questions summary (collection)" "php video tutorial"
The above is the detailed content of How to convert to lowercase letters in php. For more information, please follow other related articles on the PHP Chinese website!