How to convert a string to lowercase in PHP

The strtolower() function is used to converts a string to lowercase. All other special characters or numeric characters in the string remains unchanged. This function is binary-safe.



string – This parameter is required. It specifies the string to convert.


$str = 'Welcome to PHP Tutorials!';
echo strtolower($str); // Output : welcome to php tutorials!

Praveen Kumar

I am a fullstack web developer with a passion for SEO, creating stunning websites, and organic marketing. I am a perfectionist.

Post navigation