want to join us? register, it's easy | help
category icon

PHP5 Database Iterators

in PHP added by goodphptutorials, on 29/9/2009 database interator oop php5

One feature of PHP rarely seen in production code is PHP Iterators. Iterators are not unique to PHP, as Java and C++ have them, but they are a powerful mechanism to increase code usability. A very useful feature of PHP Iterators is the ability to extend them to iterate over any type of array or object. A unique implementation of PHP Iterators is to quickly and easily iterate over a result from a SQL query against a database. This provides a fast and very memory efficient implementation for loading up many objects.

comment save report
 
to add comments, create a free account, or sign in
no comments