Why use anonymous function? [duplicate]
I would say that anonymous functions show their beauty when there is good library classes/functions that use them. They are not that sexy by themselves. In the world of .net there is technology called LINQ that makes huge use of then in very idiomatic manner. Now back to PHP. First example, sort: uasort($array, function($a, $b) … Read more