convert to lowercase in php 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: tolower php

The strtolower() function is used to convert a string into lowercase. This function takes a string as parameter and converts all the uppercase english alphabets present in the string to lowercase.

Example 3: php convert to lowercase

<?php
echo strtolower("Convert THIS TEXT ALL TO LOWER CASE");
?>

Tags:

Php Example