Menu

Add Topic

programming

waiting answer June 15, 2021

How to convert a string to uppercase in PHP

Answers
June 10, 2021

The PHP built-in function strtoupper() is used to convert a string to uppercase.

Let's check the following example to understand how this function actually works

     <?php
        $my_str = 'Convert to uppercase';
        echo strtoupper($my_str);
     ?>

OUTPUT

          CONVERT TO UPPERCASE

0 0

Please Login to Post the answer

Leave an Answer