The Travails of Traversal

13 07 2016

Flickr: By JacobDavis

The venerated foreach-loop may seem to have formed a part of PHP from the outset, but it actually entered the language starting with PHP 4, apparently appropriated from Perl. While nowadays, this control structure provides a convenient way to iterate over an array or object without the complication of conditional looping inherent in for, while, and do-while loops, it was originally intended to provide a way to easily traverse arrays (see PHP Manual published 3-6-2003). Read the rest of this entry »





PHP – Abstract Classes and Interfaces

15 04 2010

For those of you who may be looking for my Compression Part IV — it is coming soon. In the meantime, I thought it would be fun to take a quick look at PHP’s abstract classes and interfaces. Read the rest of this entry »








%d bloggers like this: