Re:Go from PHP engineer's perspective
by TazeTSchnitzel on Friday February 26, 2016 @06:42AM
(#11180914)
Er, that should be:
list($a, $b) = [$b, $a];
list($a, $b) = (function(){ return ["one value", "another"];})();
Anyway, it's not even out-of-date, just ignorant. PHP has list() for at least 16 years.
list(a, b) = [b, a]
Multiple return values:
[a, b] = function(){ return ["one value", "another"];};