News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Fabien Potencier's Blog:
PHP Iterators and Streams are awesome
May 26, 2010 @ 10:18:55

Fabien Potencier has written up a new post about two features of PHP he thinks are underused and very powerful - iterators and streams.

PHP also have a lot of awesome features; at least two of them are in my opinion largely underused: Iterators and Streams. You won't learn how to use them in this post, but with a simple example, I hope you will want to learn more about them.

He gives an example of a recent update he made to the sfFinder class for Symfony to use iterators instead of the current implementation. With the help of streams, making it translate its searching skills from the local machine out to an Amazon S3 instance was a relatively simple change to the stream's location.

0 comments voice your opinion now!
iterator stream example amazons3


blog comments powered by Disqus

Similar Posts

Zend: Roll Your Own Search Engine with Zend_Search_Lucene

Jani Hartikainen's Blog: Closures coming in PHP 5.3 and thatís a Good Thing

PHP Security Blog: Cross Virtual Host Cookie Theft

Zend Developer Zone: Accessing DB2 Data Inside of i5/OS

Developer Tutorials Blog: Easy Screen Scraping in PHP with the Simple HTML DOM Library


Community Events

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


interview security library api series opinion framework podcast laravel5 php7 community release development voicesoftheelephpant version laravel extension unittest language introduction

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