str lowercase php code example
Example 1: how tdo you convert a stringto lowercase in php
strtolower ( string $string ) : string
$string = 'HELLO WORLD';
echo strtolower($string);
Example 2: how to convert string word to lowercase in php
strtolower ( string $string ) : string
$string = 'HELLO WORLD';
echo strtolower($string);
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 3: convert string to lowercase in php
/* There is a function in php wich convert all paragraph or
string to lowercase*/
<?php
echo strtolower("Hey Samy, HAVE YOU CHECK THE LATEST MOVIE.");
?>
Example 4: php to lowercase
<?php
$str = "Mary Had A Little Lamb and She LOVED It So";
$str = strtolower($str);
echo $str;