2 ms·
It is still an anonymous function.
by rll 14y ago
It is still an anonymous function.
- papsosouid 14y agoYou said "lambda was added to PHP in June 2000". That is clearly not the case, and now you are trying to play semantic games to pretend you are still right. The function create_function() is not lambdas. It isn't even anonymous functions, they are still named, you just don't know the name. You can easily get a duplicate function error from using create_function(), which means it is most certainly not anonymous. Note that php.net/create_function even points you to their page on actual anonymous functions, which they erroneously claim are the same as closures.