PHP - Update string to lower using strtolower

by
Jeremy Canfield |
Updated: October 07 2022
| PHP articles
strtolower can be used to update a string to have all lower case characters. For example, let's say you have a variable that contains the text Hello World.
$string = "Hello World";
In this example, the $string will be updated to lower.
$string = strtolower($string);
Now, when you echo $string . . .
echo $string;
. . . the following will be displayed.
hello world
Did you find this article helpful?
If so, consider buying me a coffee over at