<?php $x = 'cat'; $closure = function () use (&$x) { return $x == 'dog'; }; var_dump($closure); $x = 'dog'; var_dump($closure);
You have javascript disabled. You will not be able to edit any code.