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'
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.