WEB TUTORIALS
PRACTICE EXAMPLES
HTML REFERENCES
CSS REFERENCES
PHP REFERENCES
Advertisements

How to convert a string to lowercase in PHP

Topic: PHP / MySQLPrev|Next

Answer: Use the PHP strtolower() function

You can use the PHP strtolower() function to convert a string to lowercase.

Let's check out the following example to understand how this function actually works:

  • <?php
  • $my_str = 'The Quick Brown Fox Jumps Over The Lazy Dog.';
  • echo strtolower($my_str);
  • ?>

Related FAQ

Here are some more FAQ related to this topic:

Advertisements

Your Feedback:

We would love to hear from you, please drop us a line.