Archive

Posts Tagged ‘closures php’

Closures are coming to PHP

September 17th, 2009 No comments

Dagfinn has a post looking at using the new closure feature of PHP 5.3. He compares using foreach for iteration versus array_map. “Interesting,” he concludes, “but not necessarily better than conventional alternatives.”

I agree for that case. Consider instead, a more complicated operation that requires a setup and a tear down after. Read more…

Categories: Php Tags: ,