Home arrow PHP arrow Building an Iterator with PHP

Building an Iterator with PHP

Want to clean up you code and save hardware usage? Well it is possible thanks to Dejan's iterator technique. Read how it is done.

Author Info:
By: Dejan Bosanac
Rating: 4 stars4 stars4 stars4 stars4 stars / 19
August 15, 2003
  1. · Building an Iterator with PHP
  2. · Article
  3. · Conclusion

print this article

Building an Iterator with PHP
(Page 1 of 3 )

PHP arrays are generally a very powerful object container. But, we can easily add a little more fuel to them. Imagine an iterator object as a kind of wrapper around our arrays. What we will try to accomplish is to build a unique interface for traversing arrays and to add a little more control over how our objects are created. Finally, I'll explain how they can be used to support lazy loading.
blog comments powered by Disqus

- Removing Singletons in PHP
- Singletons in PHP
- Implement Facebook Javascript SDK with PHP
- Making Usage Statistics in PHP
- Installing PHP under Windows: Further Config...
- File Version Management in PHP
- Statistical View of Data in a Clustered Bar ...
- Creating a Multi-File Upload Script in PHP
- Executing Microsoft SQL Server Stored Proced...
- Code 10x More Efficiently Using Data Access ...
- A Few Tips for Speeding Up PHP Code
- The Modular Web Page
- Quick E-Commerce with PHP and PayPal
- Regression Testing With JMeter
- Building an Iterator with PHP

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 

Developer Shed Affiliates


© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials