Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

DevShed.com:
The Iterator Pattern (Conclusion)
Dec 02, 2005 @ 13:01:50

DevShed.com has posted the conclusion article in their "The Iterator Pattern" series (excerpt from this php|architect book).

This article, the second of two parts, explains how to use the Iterator pattern to manipulate any collection of objects.

With Iterators,you can do more than just present each item of the collection. You can also select what items are presented.

They also give two examples of Iterator situations - a Sorter and an SPL (Standard PHP Library) Iterator...

tagged: pattern iterator book excerpt php|architect pattern iterator book excerpt php|architect

Link:


Trending Topics: