Posts Tagged ‘closure’

|

Anonymous Functions and Closure in PHP

Tuesday, April 20th, 2010

It’s about time that PHP joined the band wagon of anonymous functions. Anonymous functions, also known as closures, are functions with no specified name. These functions are stored in variables and can be passed around. Anonymous functions have been in other programming languages like Javascript, so if you know Javascript then anonymous functions are nothing new.

(more…)

Tags: , , ,
Posted in Programming, Tutorial | 2 Comments »