<?php $bar = 123; $one = function() use($bar){ echo $bar . "\n"; }; $two = function() use(&$bar){ echo $bar; }; $bar = 456; $one(); $two();
You have javascript disabled. You will not be able to edit any code.