[PHP TUT] CAPITALIZING LETTERS USING PHP
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.