<?php function shenanigans(string &$foo) { return function () use (&$foo) { $foo = 'But this action at a distance is annoying.'; }; $foo = "I can expect it is changed inside function"; } $somestring = "original value"; $fn = shenanigans($somestring); var_dump($somestring); // many lines of code here // many lines of code here // many lines of code here $fn(); var_dump($somestring);
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`