PHP5 Iterator Tutorial

November 25th, 2004

This PHP5 tutorial is a little misleading in how it explains iterating over an array that implements ArrayAccess. If your class does this and you want to be able to do a foreach($obj as $k => $d) it may or may not work (depending on the underlying storage of data) by simply implementing IteratorAggregate. Creating a proper iterator is the best way to do this. I will write about that later.


2 Comments to “PHP5 Iterator Tutorial”


  1. Diesel said:

    http://digg.com/celebrity/Lisa_Ann_2


  2. Kir said:

    http://digg.com/celebrity/Lisa_Ann_2

Leave a Reply