Bootstrap FreeKB - PHP - Update string to lower using strtolower
PHP - Update string to lower using strtolower

Updated:   |  PHP articles

strtolower can be used to update a string to have all lower case characters. For example, let's say you have a variable that contains the text Hello World.

$string = "Hello World";

 

In this example, the $string will be updated to lower.

$string = strtolower($string);

 

Now, when you echo $string . . .

echo $string;

 

. . . the following will be displayed.

hello world

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter b03abb in the box below so that we can be sure you are a human.