A quick implementation for reading a key/value dataset from an XML document.
Today I present to you a PHP puzzler that in fact had me stumped for a day or two. I do enjoy when a language throws a curve ball; it presents an opportunity to gain insight on the mechanics and become acquainted with the nuances of the language in question.
Inspired by a thread on Facebook to which I contributed, a few words concerning readable code vs compact code.
Taken from my reply to a post regarding the topic on Facebook, a few words introducing key guidelines I follow when commenting my code.
A neat trick for extracting information from arrays into variables.
Working with cross-browser DHTML sucks; and that’s a fact of life. The older the browser, the worst it is because of different DOM implementations. I was trying to set this thing up where you can draw a box outline over an image, and send the coordinates to a PHP program through a form.