I need a PHP hack that does the following:
-Changes the first letter of every word in a sentence to uppercase
-Ignores certain defined short words (a, of, the, etc) and leaves them lowercase.
-Ignores certain defined all caps words (USA, IMHO, BRB, etc) and leaves them capitalized.
-Correctly handles punctuation marks at the end of a word (comma, question mark, exclamation, etc)