Posts Tagged ‘Closures’

Closures are coming to PHP

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. setup(); operation(); teardown();

Powered by WordPress | Designed by: best suv | Thanks to trucks, infiniti suv and toyota suv