PHP - Update string to upper using strtoupper

strtoupper can be used to update a string to have all upper 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 upper.

$string = strtolower($string);


Now, when you echo $string . . .

echo $string;


. . . the following will be displayed.



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 cbed3 in the box below so that we can be sure you are a human.


Web design by yours truely - me, myself, and I   |   |