The strtolower() function is used to convert all the characters of a string to lowercase. It returns a character with all the characters as lowercase.
Syntax
strtolower(str)
Parameters
str − The string to convert. Required.
Return
The strtolower() function returns a character with all the characters as lowercase.
Example
The following is an example −
<?php $mystr = "SOLARIS"; $res = strtolower($mystr); print_r($res); ?>
Output
solaris