Home > Resources > Online Tools > PHP Functions > strtolower(), strtoupper(), ucwords(), lcfirst(), ucfirst()

Live Sandbox PHP strtolower(), strtoupper(), ucwords(), lcfirst(), ucfirst() Functions

PHP strtolower(), strtoupper(), ucwords(), lcfirst(), ucfirst() Function
Instructions/Notes

lcfirst($your_string) — This PHP function returns a string with the first character of the input string converted to lowercase.
ucfirst($your_string) — This PHP function returns a string with the first character of the input string converted to uppercase.
strtolower($your_string) — This PHP function returns a string with all the alphabetic characters in the input string converted to lowercase.
strtoupper($your_string) — This PHP function returns a string with all the alphabetic characters in the input string converted to uppercase.
ucwords($your_string) — This PHP function returns a string with the first letter of each word in the input string converted to uppercase.