<?php $a = 1; $x = function ($n) use ($a) { echo "a=$a, n=$n\n"; } $x(10); // a=1,n=10 $a = 2; $x(5); // a=1, n=5
Standard input is empty
Standard output is empty
PHP Parse error: syntax error, unexpected '$x' (T_VARIABLE) in /home/fuuAPT/prog.php on line 8