HOW TO USE THE strtolower() FUNCTION IN PHP
The strtolower() function takes a string and converts all characters to lower case.
Example 1:
$oldstring="MY NAME IS JOHN SMITH";
$newstring=strtolower($oldstring);
echo $newstring;
The above will output: my name is john smith.
Example 2:
$oldstring="My Name Is John Smith";
$newstring=strtolower($oldstring);
echo $newstring;
The above will output: my name is john smith.
|