Create a function that converts string to lowercase code example

Example 1: convert string to lowercase in php

/* The strtolower() function converts a string to lowercase.
Convert all characters to lowercase.*/
<?php
echo strtolower("Hello WORLD.");
?>
// Output: hello world.

Example 2: convert string to lowercase in php

/* There is a function in php wich convert all paragraph or 
string to lowercase*/
<?php
echo strtolower("Hey Samy, HAVE YOU CHECK THE LATEST MOVIE.");


// Output: hey samy, have you check the latest movie.
?>

Tags:

Php Example