If you've ever delt with arrays in PHP, you know that there are some creat functions for them. Sorting, adding to, and combining arrays is all a pretty simple task for PHP, but what about something a bit more "low level"? Well, DevArticles hopes to help with that.
In one of their latest pieces, they show you how to create an "iterator", or an interface to using your arrays with functions such as next(), end(), or reset(). These can help tremendously to make cycling through your array as quick and easy as can be. They give you all the code you'll need, and provide you with a sample usage so you won't be left high and dry.
I can definitely see the use for something like this, but it might be a bit too inconvienent for some power users out there. You'd have to create that object every time you needed this class, and that's a lot of overhead for each array...




