<?php $foo = "bar"; function outer () { $inner = function () use ( $foo ) { var_dump( $foo ); }; } $innerInstance = outer(); $innerInstance(); ?>
You have javascript disabled. You will not be able to edit any code.