2011/7/6 Xinchen Hui <larue...@gmail.com>: > Hi: > > T_LIST is not allowed to used with foreach before. > > and then there comes a freature request: #10203 allow > foreach($array as list($a,$b)
Ironically enough you managed to miss the last closing ), enforcing the point of this not being a natural syntax. Furthermore, without reading the RFC, is this the same as foreach($array as $a => $b) {} or foreach($array as $e) { list($a, $b) = $e; } or.. ? that really doesn't look like something PHP should support imo. -Hannes -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php