All in the <head> – Ponderings and code by Drew McLellan –

Favourite PHP Tricks

There was some discussion yesterday about a PHP trick (for want of a better word) for having HTML form fields automatically converted to arrays. From my understanding so far, this seems pretty typical of general PHP philosophy – specific little tools and techniques are dropped in all over the place to make those common procedures that you perform a hundred times in every web app just that little bit easier. I think it’s great – it makes rapid web app development very easy for beginners and enables seasoned developers to focus on the logic rather than the nuts and bolts. PHP really is a tool built for the job.

So, my question is this. What is your favourite PHP trick? What’s the one little tip you’ve picked up along the way that has saved you time or made development easier?