How To Make Entire Sentences Initial Caps In Perl or PHP

Published Date Author: , Posted November 23rd, 2010 at 12:53:00am

Perl: $text =~ s/(\w+)/\u\L$1/g;

PHP: $text = ucwords(strtolower($text))

No comments as yet.

Leave Your Comment  Leave a comment

All fields marked with "*" are required.