php all characters lowercase code example
Example 1: tolower php
The strtolower() function is used to convert a string into lowercase. This function takes a string as parameter and converts all the uppercase english alphabets present in the string to lowercase.
Example 2: php to lowercase
<?php
$str = "Mary Had A Little Lamb and She LOVED It So";
$str = strtolower($str);
echo $str;
// Result: mary had a little lamb and she loved it so