<?php class foo { function bar() { $var = array(); $closure = function(){return $var;}; print_r($closure()); } } $foo = new foo; $foo->bar();
You have javascript disabled. You will not be able to edit any code.