Return to Snippet

Revision: 10063
at December 5, 2008 08:04 by Wardy


Initial Code
echo ucfirst (strtolower('FROGS EAT DOGS ON LOGS.')); # outputs: Frogs eat dogs on logs.

Initial URL
http://www.devchunks.com/string/use-php-to-capitalise-your-text/

Initial Description
First Remove all capital letters, then capitalise the first ones in each word.

Initial Title
php - Capitalise First Letter of Words

Initial Tags
php, text

Initial Language
PHP