PHP Programing language

strtolower() & strtoupper() Functions in PHP
Previous Home Next

strtolower():

This function converts the string to lower case.

Syntax :
strtolower("string");

Example:

<?php 
echo strtolower("GUD MORNING"); 
?>

Output:

gud morning

 

strtoupper():

This function converts the string to upper case.

Syntax :
strtoupper("string");

Example:

<?php 
echo strtoupper("gud morning");
?> 

Output:

GUD MORNING

Previous Home Next