Bootstrap FreeKB - PHP - Update string to upper using strtoupper
PHP - Update string to upper using strtoupper

Updated:   |  PHP articles

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.

HELLO WORLD

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


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