PHP strtolower Function

What is strtolower Function?

Explanation

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

Syntax:


strtolower(string)

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

Example :


<?php
$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