Generators in PHP, new generation of simple iterators
Every time a new version of PHP is released, I feel like a child opening Christmas gifts. There are a lot of sweet cookies behind the hood, which can make your code more elegant and faster. One of them is generators. This concept was introduced in PHP v. 5.5. Unfortunately dry and quite abstract