/* strtolower() function converts string to lowercase. */
<?php
echo strtolower("Hello WORLD 123");
?>
// Output:hello world 123
strtolower ( string $string ) : string
//Returns string with all alphabetic characters converted to lowercase.
$string = 'HELLO WORLD';
echo strtolower($string); //Output: 'hello world'
$string = 'HeLlO WoRlD';
echo strtolower($string); //Output: 'hello world'
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.
/* The strtolower() function converts a string to lowercase.
Convert all characters to lowercase.*/
<?php
echo strtolower("Hello WORLD.");
?>
// Output: hello world.
/* 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.
?>
<?php
echo strtolower("Convert THIS TEXT ALL TO LOWER CASE");
?>
<?php
$str = "Mary Had A Little Lamb and She LOVED It So";
$str = strtolower($str);
echo $str;
// Result: mary had a little lamb and she loved it so
echo strtolower('HELLO WORLD'); // hello world
# for lowercase use this function
# strtolower();
<?php
$string = "Hello World";
$string = strtolower($string);
echo $string;
# output will be like this: "hello world"
?>
<?php
$str = "Mary Had A Little Lamb and She LOVED It So";
$str = strtolower($str);
echo $str; // Prints mary had a little lamb and she loved it so
?>
Code Example |
---|
Php :: How to prevent Browser cache for php site |
Php :: get today date magento 2 object manager |
Php :: localhost install new plugin ftp wp |
Php :: reverse array laravel |
Php :: |
:: |
Php :: php convert array to json object |
:: remove create in nova resource |
Php :: php array get first x elements |
Php :: convert utc to local time phpAdd Answer |
Php :: How to check current URL inside @if statement in Laravel |
Php :: laravel where column different |
Php :: |
Php :: check exist string in string php |
Php :: laravel db transaction |
Php :: failed to open stream permission denied laravel |
Php :: |
:: php subtract mins to datetime |
Php :: email validation in laravel |
Php :: php grab month from date |
:: laravel check method is post |
Php :: |
Php :: laravel json response decode |
Php :: Print exact sql statement executed |
Php :: the requested url was not found on this server. laravel |
Php :: |
Php :: isset submit in php |
Php :: how to claer the input php |
:: |
Php :: php counting number of chars excluding newlines |