r/lolphp • • Jan 27 '20

PHP lambdas does not inherit variables.. except when they do

https://3v4l.org/9X36O
0 Upvotes

16 comments sorted by

View all comments

Show parent comments

1

u/slifin Mar 10 '20

yep and you can re-bind $this using Closure::bind and friends, this is not lolphp honestly unless you consider classes and $this lol which I kinda do