PHP strtolower() function with example

PHP strtolower() work: Here, we will find out about the strtolower() work with an example.

PHP strtolower() work

strtolower() work is a string capacity, it acknowledges the string and returns a lowercase string.

Syntax:

    strtolower(string);

Example:

    Input: "This is my COMPUter!"
    Output: "this is my computer!"

PHP Code:

<?PHP
    $str = "This is my COMPUter!";
    
    echo (strtolower($str));
?>

Output:

this is my computer!

Leave a Comment

error: Alert: Content is protected!!