PHP strtolower Function

What is strtolower Function?


In PHP, this function is used to convert a string to lowercase.



In the above syntax, the given "string" has to be converted to lowercase.

Example :

$str = "Hi FOLKS welcome to Web our WORLD";
$str = strtolower($str);
echo $str;
Result :

hi folks welcome to web our world

In the above example the string which is in both cases is convereted to lowercase.

PHP Topics

Ask Questions

Ask Question