I remember a while ago YFS asking how to convert a string to title case (for Article Depot I assume). I've just come across the article Title Case in PHP which does exactly what it says on the tin. Maybe a bit late for YFS but could be useful to others wanting the same thing.
T0PS and SE do those ways take into account the short words like the, in, of etc and only capitalise them if they begin the title? If they do that will be a way easier way of doing things.
The CSS does that... http://www.w3schools.com/css/pr_text_text-transform.asp p { text-transform: capitalize; }
This was discussed in the thread and while it could be almost valid (words like in, the, a... didn't have to be capitalized), it only works "for the screen" (or whatever media you do the css sheet). I do like CSS, but on that case it was a matter of server side programming, as it needed to be stored on a database after doing the text transformation.
I am going to mess around with the code DCT linked to although in the original thread I pretty much decided there were just too many exceptions. Things like iPod and eBay or when someone uses all capitals. Not to mention when "the" is the first word etc. I do appreciate the link though and I am going to try it.