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 »

Constant Consistency

31 08 2014

Flickr: by better_days.geo

For some time PHP has had the ability to create constant expressions with define(). Read the rest of this entry »

PHP on the Cusp of a New Operator

20 12 2013

Flickr: by yh828

For nearly two decades, if you include precursor PHP/FI, PHP lacked a basic mathematical operator, the one for exponentiation. Read the rest of this entry »

%d bloggers like this: