A takeover of PHP Closure and anonymous functions

Manil Lancash Since Apr 19, 2016 3 Posts

Wow thanks for explaining this, i can see the small difference now

Since Apr 18, 2015 1 Posts

Good explanation, Ahmed. I use to use anonymous functions in JS that is very similar to PHP cousure.

Thanks for share your knowledge!

Since May 15, 2016 1 Posts

Nice post, I always had issues with those new trendy options the modern PHP invented (traits for example). Your post really helped me lose some of the tech phobia around this subject. Thanks

zooboole Since Jan 22, 2015 119 Posts

Glad it helps you, I should probably be talking of the traits next time.


Here is a topic on Traits: http://phpocean.com/tutorials/back-end/php-objects-with-wrong-traits/53

Walid Jlidi Since May 09, 2018 1 Posts

Big thanks for explanation Ahmed, It's a good quality explanation in which you take the closure from all the sides. :)

Farhad Kabir Since Feb 04, 2019 1 Posts

Nice Explanation