Day: March 25, 2012

PHP Functions

Grammatically Correct PHP Title Capitalization Function

Sometimes a developer has to get their titles from crazy sources that aren’t always capitalized correctly. Nobody wants to change all these titles every time they show up to make the right words capitalized, so here’s a little PHP function that corrects them all for you: function ucTitle($title){ $title = ucwords($title); $title = str_replace(‘ A ‘, […]

Read more