php stringtolower code example
Example 1: how tdo you convert a stringto lowercase in php
strtolower ( string $string ) : string
//Returns string with all alphabetic characters converted to lowercase.
$string = 'HELLO WORLD';
echo strtolower($string); //Output: 'hello world'
Example 2: 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.