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 - Traversing Data Structures in PHP 5
March 23, 2006 @ 07:26:35

Wrapping up their series on Iterators in PHP, DevShed has posted Traversing Data Structures in PHP 5 - a look a combining embedded classes with the SPL to work through your data.

Welcome to the final part of the series "Iterators in the Simplest Sense." In this set of articles, you'll learn the basic concepts of iterators in PHP 4 and PHP 5. The overall learning experience is strongly focused on the practical sense of the topic, so you can start quickly using iterators within your own PHP applications.

In this last article I'll explore the implementation of PHP 5 iterators, by utilizing some of the embedded classes that integrate the powerful SPL package. Thus you can learn quickly how to include these programming structures inside your PHP applications.

They jump right in and start working with the SPL functions to create a simple, readable iterator class ("FileIterator"). They follow this with two examples building on the class - one that works with data from a text file, and the other from a MySQL database.

0 comments voice your opinion now!
iterator traversing data structures php5 fileiterator iterator traversing data structures php5 fileiterator


blog comments powered by Disqus

Similar Posts

DevShed: Building Dynamic Web Pages with Polymorphism in PHP 5

Martynas Jusevicius' Blog: PHP 5 features: Class autoloading

Zend Developer Zone: Davey Shafik and Ben Ramsey on the Zend Certification Exam Study Guide

Sephiroth.it: PHP5 - a big failure?

Dotvoid.com: PHP 5.2 ajaxified


Community Events





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


interview symfony laravel api community language zendserver release code deployment conference series list tips podcast developer framework introduction development threedevsandamaybe

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