PHP Questions Home

Categories

Arrays
Files
Forms
Functions
Images
MySQL
Numbers
Others
Strings
Website


PHP Functions

PHP Functions


More PHP

Top Questions
Ask a Question

How do I make the contents of a string lower case?


If you want to remove upper case letters and capitalisation, PHP provides an extremely easy way of doing so.

This is through using the strtolower function like this:

<?php
$mystring 
"I DON'T LIKE SHOUTING!";
echo 
strtolower($mystring);
?>


Prints: "i don't like shouting!";



More strings PHP Questions

How do I join strings together?
How do I calculate the metaphone of a string?
How can I remove spaces from around a string value?
How do I make the first letter of a string uppercase?
How do I replace a word in a string in PHP?