Dynamically Typed has a quick new posting today concerning an automatic way to create correctly cased titles for things like blog entries.
The PHP functions strtoupper and ucwords capitalise all characters in a string, and the first letter of every word in a string, respectively. However, there exists in the standard PHP library no way of achieving Title Case, which involves capitalising all words except for small words (such as conjunctions) when they are not the first word.
The following mini-tutorial will provide a solution similar to the one I came up with for displaying thread titles in the SitePoint Forums' Highlighted Forum Discussions.
It's not an overly difficult idea to accomplish, but it's nice to have a script all in one place that can give your site the consistency that properly-formatted headlines can. (Be sure to check out the comments for more helpful tips...)




