Continuing in his series, David Fells has a new posting on DevShed of part two of his The Standard PHP Library series.
In our second article on the standard PHP library, David Fells explains the new Array object, introduces Iterators and the ArrayIterator, and discusses some practical examples of their usage. This article assumes a knowledge of how Exceptions work in PHP 5.
An iterator (for those that aren't sure) is simply an object that traverses the contents of another object. An example of this is the ArrayIterator object that they show you how to develop. It's based around an ArrayObject and its contents, as well as extending the functionality therein.
It's an interesting way to go about it all, but I'm not sure that the extra work involved is worth the overhead...




