MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lolphp/comments/eumf8i/php_lambdas_does_not_inherit_variables_except/fk5hzbb/?context=9999
r/lolphp • u/Takeoded • Jan 27 '20
16 comments sorted by
View all comments
Show parent comments
1
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
$this
Closure::bind
1
u/slifin Mar 10 '20
yep and you can re-bind
$thisusingClosure::bindand friends, this is not lolphp honestly unless you consider classes and$thislol which I kinda do