Use of Closures in Views |
(09-25-2015, 06:46 AM)jLinux Wrote: Question though, are you sure this is a closure? I think its actually an anonymous function. I honestly always thought they were the same thing with Closure being the specific class name, while anonymous function was just a "layman's term". A little research shows there is a difference in other languages like Javascript but, in PHP they are the same thing. Whenever you create an anonymous function it creates an instance of the class Closure. Source: PHP Manual on Closures |
Welcome Guest, Not a member yet? Register Sign In |