Closure
A closure is a programming technique that allows variables outside of the scope of a function to be accessed. In many cases, a closure is created when a function is defined within another function, allowing the inner function to access variables within the outer function.
Additional Information
- Closures, The Term
- Code Rant: What is a Closure?
- JavaScript Closures
- PHP inner functions and closure
Also see: Captured variable, Programming definitions
