php string to lowercase code example
Example 1: convert string to lowercase in php
/* strtolower() function converts string to lowercase. */
<?php
echo strtolower("Hello WORLD 123");
?>
// Output:hello world 123
Example 2: strtolower php
strtolower ( string $string ) : string
$string = 'HELLO WORLD';
echo strtolower($string);
$string = 'HeLlO WoRlD';
echo strtolower($string);
Example 3: how tdo you convert a stringto lowercase in php
strtolower ( string $string ) : string
$string = 'HELLO WORLD';
echo strtolower($string);
Example 4: 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 5: 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 6: how to convert string word to lowercase in php
strtolower ( string $string ) : string
$string = 'HELLO WORLD';
echo strtolower($string);
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.