Iterator Article in July php|architect

By Jason. Filed in PHP  |   
Home this! Digg this! RSS 2.0 

This months php|architect magazine has one of the chapters of my design patterns book as the lead article. You can download just the article as the sample chapter for the book.

I think the iterator chapter does a good job of being a representative sample of the book. I had both php4 and php5 code example, show a “pure” Gang of Four style iterator, as well as a more abreviated API version, and showed a bit of how to use the SPL iterator interface. It has a splash of UML, tons of code and SimpleTest based unit tests as well.

If you have any questions or feedback, feel free to leave a comment here, or post a message to the php|architect forum.


  1. Comment by Didier BRETIN:

    A little error on the url of SimpleTest : htpp:// :)

  2. Comment by Jason:

    That is the Hyper-Text Premium Protocol, perhaps your browser does not yet support it ;)

Leave a Reply

Your email address will not be published.