ucwords() to convert a string to title case in PHP

by jim.mayes - (add comment)

I enjoy the challenge of solving a problem as much as the next guy, but sometimes it seems that PHP programmers have a tendency to apply great ingenuity in creating complex solutions for a fairly simple problem that actually already has a very simple solution. What’s more, these bits of code (we’ll call them “better mouse traps”) usually end up posted on a blog someplace to be picked up and spread into countless people’s applications.

have a look at this function I stumbled upon today…

Read the rest of this entry »