php tutorial - PHP strtolower & strtoupper - php programming - learn php - php code - php script





  • strtolower function is Used for converting all the string characters to lower case letters.
  • strtoupper function is being Used to convert all string characters to Upper case letters.

php scripts Syntax :

strtolower(string);
strtoupper(string);
click below button to copy the code. php tutorial - team

php 7 Sample Code : sample php program

<!DOCTYPE html>
<html>
    <body>
        <?php
            echo strtolower('WIKITECHY');
            echo strtoupper('wikitechy');
        ?>
    </body>
</html>
click below button to copy the code. php tutorial - team

php programmer Code Explanation :

Code Explanation for strtolower strtoupper Function In PHP

  1. echo statement “WIKITECHY” text string is converted as uppercase to lower case using the “strtolower” string function.
  2. echo statement “wikitechy” text string is converted as lowercase to upper case using the “strtoupper” string function.

php development Sample Output :

output for strtolower strtoupper Function In PHP

  1. In this output the term “WIKITECHY” has been changed to lowercase.
  2. Similarly, the term “wikitechy” has been changed to uppercase.


Related Searches to php strtolower strtoupper function