Making the string all capital letters: You can simulate the CAPSLOCK key using the strtoupper PHP function. This will make every letter in the string a capital letter.
Example: Print(strtoupper("I am using strtoupper"));>
Result: I AM USING STRTOUPPER
Making the string all lower case letters: You can also force all letters in a string to be lower case. This is done with the strtolower PHP function.
Example: Print(strtolower("I AM USING STRTOLOWER"));>
Result: i am using strtolower
Capitalizing each word: You can choose to only capitalize the first letter of every word. This works great when working with a list of names or cities. This is done with the ucwords PHP function.
Example: Print(ucwords("angela, bradley, alexa, jason"));>
Result: Angela, Bradley, Alexa, Jason
Capitalizing each string: You can also choose to only capitalize the first letter of each string. This could be used to make sure sentences (as separate strings) are capitalized. This is done using the ucfirst PHP function.
Example: Print(ucfirst("this is my sentence."));>
Result: This is my sentence.