1/* strtolower() function converts string to lowercase. */
2<?php
3echo strtolower("Hello WORLD 123");
4?>
5// Output:hello world 123
1strtolower ( string $string ) : string
2//Returns string with all alphabetic characters converted to lowercase.
3$string = 'HELLO WORLD';
4echo strtolower($string); //Output: 'hello world'
5$string = 'HeLlO WoRlD';
6echo strtolower($string); //Output: 'hello world'
1strtolower ( string $string ) : string
2//Returns string with all alphabetic characters converted to lowercase.
3$string = 'HELLO WORLD';
4echo strtolower($string); //Output: 'hello world'
1/* The strtolower() function converts a string to lowercase.
2Convert all characters to lowercase.*/
3<?php
4echo strtolower("Hello WORLD.");
5?>
6// Output: hello world.
1The 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.
1<?php
2$str = "Mary Had A Little Lamb and She LOVED It So";
3$str = strtolower($str);
4echo $str;
5// Result: mary had a little lamb and she loved it so