Comments By: Ralph
-
I have been reading about closures in Javascript, and I think I understand a bit about their use, but can you give some sort of example of a practical need or purpose for a closure in PHP? In other words, I am looking for something that either cannot be done in PHP without closures, or that can be done significantly more easily with closures than without. I am talking about practical applications here, something that might be used on a real web site. Thank you.
posted on Apr 21, 2008 at 6:24pm | context