Jun
22
2009
0

Iterating in PHP5

The chatter about PHP’s SPL has been picking up recently which is a good thing. SPL has been available for quite some time and a lot of people still don’t know about the awesome features it brings to the table. The problem I have however is that a lot of examples about the iterator interface don’t show off the power that it brings to the table.

For our example we are going to take a look at a simplified version of my ISBNDB wrapper which uses this technique to transparantly page the results received from the webservice. (more…)

Written by Robert van der Linde in: code | Tags: , ,

Powered by WordPress | Aeros Theme | TheBuckmaker.com WordPress Themes