Lazy evaluation with PHP
Note: This article was originally published at Planet PHP
on 31 May 2011.
My new article called Lazy evaluation with PHP has just been published in Web Species blog.
Recently I needed to process a huge array of data and because of PHP's somewhat inefficient variables and especially arrays that was resulting in a€oout of memorya€¯ errors. However, I couldn't use any other tools than PHP so was forced to come up with a solution implementation in it. Here is how I solved it using principles from functional languages.
I talk about the problem I had and how I solved it, continue reading.


