Rafael Dohms' Blog: Iterating over life with SPL Iterators I: Di...

Courtesy PHPDeveloper.org  Thu, 10/08/2009 - 10:57

Rafael Dohms has posted the first part of a series he's writing looking at the Iterators that come with the Standard PHP Library (SPL).

In this first article he focuses on Directory iterators.

Wouldn't it be nice if you could go by life just applying a foreach to each year and life day by day?

Ok, that was an awful joke, but using iterators does make life a lot easier and fun, and that's without mentioning cleaner...


 

More related items

Rafael Dohms' Blog: SPL: a hidden gem
Earlier this month Rafael Dohms posted a new article to his blog looking at a feature of PHP it seems not every developer knows about - the Standard PHP Library (or SPL). By a show of...

SitePoint PHP Blog: Simple Object Iterators in PHP
On the SitePoint PHP blog today there's a new post from Craig Buckler looking (quickly) at a handy feature of the Standard PHP Library (SPL) that can help make working with objects and...

Adam Gotterer's Blog: Building an Object Collection...
Adam Gotterer has written up a tutorial with his process behind creating an object collection manager with PHP's built-in SPL functionality. The purpose of a collection is to store objects...


 

Post new comment

The content of this field is kept private and will not be shown publicly.
computer-internet.marc8.com