Changing case
The following PHP functions return a copy of the subject string with changes in the case of the characters:
string strtolower(string subject) string strtoupper(string subject) string ucfirst(string subject) string ucwords(string subject)
The following fragment shows how each operates:
print strtolower("PHP and MySQL"); // php and mysql
print strtoupper("PHP and MySQL"); // PHP AND MYSQL
print ucfirst("now is the time"); // Now is the time
print ucwords("now is the time"); // Now Is The Time