Iterators + Generators: The Road to Virtual Infinite RAM
Iterators could save your day on many occasions. Everyone has already been bothered by memory overflows when trying to manage too big collections in PHP. These are omnipresent in the most famous PHP libraries: Symfony, Doctrine, PHPUnit and even the SPL. The latter contains a lot of ready-to-use iterators that will allow you to manage collections of any size, without ever having to worry about memory. You won’t be able to do without Iterators and Generators soon!