News Feed
Sections




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

DevShed:
Iterators in the Simplest Sense - An Accessible Implementation in PHP 4
March 09, 2006 @ 07:12:15

DevShed has published the first in a new series that looks to explain the implementation and core concepts behind using iterators in PHP. This time, they look at creating this environment in PHP4.

Here, I'm not going to offer a full reference for what each design pattern is. You can buy a book to learn that, or even do some "googling" and find other helpful resources that probably will treat the subject much more extensively. Instead, I'll provide you with a concise explanation of what an Iterator is, in conjunction with numerous sample codes, which hopefully will help you understand much more easily how it can applied in PHP object-oriented programming.

They start off by looking at what the Iterator pattern is - the setup of a pseudo-class and an explaination of how it works. They follow this with a functional example and creating a subclass off of the generic base class.

0 comments voice your opinion now!
design pattern iterator core concepts implementation design pattern iterator core concepts implementation


blog comments powered by Disqus

Similar Posts

Padraic Brady's Blog: Complex Views w/Zend Framework - The Final Chapter: ZFE & Zend_Layout in Core!

Jim Plush's Blog: Followup on rethinking Zend Models with DDD - Framework code included

DevShed: Introducing Bridge Classes with PHP 5

SitePoint PHP Blog: IronMQ and Laravel: Implementation

Mike Wallner's Blog: Phar vs World


Community Events

Don't see your event here?
Let us know!


library laravel podcast security introduction release php7 api language extension voicesoftheelephpant video unittest interview laravel5 community series version opinion framework

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework