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 :

- echo statement “WIKITECHY” text string is converted as uppercase to lower case using the “strtolower” string function.
- echo statement “wikitechy” text string is converted as lowercase to upper case using the “strtoupper” string function.
php development Sample Output :

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