PHP - Update string to lower using strtolower

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 Buy Me A Coffee

Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.





Please enter 22a3d in the box below so that we can be sure you are a human.




Comments

Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |