Hi, Rodrigo Saboya wrote: >> >> function ($x, $y) ($a, $b, $c) {}; > > This looks better > >> function ($x, $y) [$a, $b, $c] {};
I think this looks even better: function ($x, $y) use ($a, $b, &$c) {}; (one could use this syntax even for traditional functions to use variable copies/references from global scope - just an idea). my 2, L. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php