<?php class A { function foo() { $f = function() { $name = 'this'; var_dump($$name); }; $f(); } } $a = new A; $a->foo();
You have javascript disabled. You will not be able to edit any code.