PHP Questions Home | Register | Login
Categories
Arrays
Files
Forms
Creating PDFs
PHP Errors
Functions
Images
MySQL
Numbers
Others
Strings
Website
Unanswered

PHP Forums
Forums Index
MySQL Forum
PHP Forum
Flash/Actionscript
Javascript
Web design

More PHP
PHP Functions
Top Questions
Ask a Question
PHP Interview Questions
PHP Jobs
Ecommerce
IT Questions
Business Websites

Sponsors

sponsor ad
My Salary
PHP Developer Salary
Advertise Here

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!";



Comment on this Question and Answer >>>

ASK A QUESTION

More strings PHP Questions

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

How do I convert relevant characters in a string to HTML entities?

I retrieve data from a Mysql database and insert it into a textfield form. The data that I retrieve have a / at the end of the string. The data in the database does not have this / in the data. How do I remove this /?

How do I calculate the MD5 hash of a string?

How do I format the output of a string?



Custom Search