PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information

What Generators Can Do For You

Note: This article was originally published at Planet PHP on 24 July 2012.
Planet PHP
The concept of generators was recently proposed for addition in PHP's core (Possibly for 5.5.0). While I believe that this is a great tool, it appears that many PHP developers aren't familiar with the concept of generators. So I thought I would take a little time and explain some of how it works, and how it can be used to greatly simplify code.Read more A