no php has native lambdas and closures since 5.3.
Re:PHP needs to die. What will replace it?
by andfarm on Tuesday September 28, 2010 @02:40PM
(#1736742)
Fair enough! (http://php.net/manual/en/functions.anonymous.php) Still, it's taken them a long time to add that.
Perl has real arrays as well as hashes, though. PHP only has one object which acts as both.
> PHP has both lambda's
create_function() isn't really a lambda: the created function isn't bound to the local variable namespace that it was defined in.