James John – Software Engineer

[PHP TUT] CAPITALIZING LETTERS USING PHP

Hi all,

Setting capital letters automatically without stressing yourself writing it is one of the sweets things I love with PHP
We have four functions here which I listed below:

strtoupper() – Make a string all uppercase, as in “HOW ARE YOU”
strtolower() – The reverse of strtoupper, removes all capitals.
ucwords() – Capitalizes the first letter of each word.
ucfirst() – Capitalized the first letter of the string. Perfect for displaying user names, as they are generally all lowercase.

James John

Software Engineer