3 ms·
Not sure where to report this, but there doesn't seem to be a way to use 5.3 functions with 'use' variables. Example: $shared = 3; function ($a) use
by tmzt 13y ago
Not sure where to report this, but there doesn't seem to be a way to use 5.3 functions with 'use' variables.
Example:
$shared = 3;
function ($a) use (&$shared) {
echo "In function before assignment: shared: " .
$shared;
$shared = 5;
echo "In function after assignment: shared: " . $shared;
}
echo "After function: shared: " . $shared;