Closures, Callbacks & Anonymous Functions

Comments Off on PHP Closures

PHP Closures

Closures are anonymous functions and are like lambda functions, but smarter in the sense that they have the ability to interact with variables from the outside environment of where the closure is defined. They are functions created without a name, and they are generally passes and callback handlers to other functions. Added in PHP 5.3, these […]