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 first letter of each word upper case?

How do I reverse a string in PHP?

How do I calculate the metaphone of a string?

How do I remove trailing whitespace from a string?

Hello, Is it possible to specify a character-encoding in the filter_var function. Thank you for your reply, Jan



Custom Search