language question
| From: | David Otton | Date: | Mon, 22 Oct 2001 12:28:38 +0000 |
| Subject: | language question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-71820@lists.php.net to get a copy of this message | ||
why does this work:
foreach ($table as $row)
list ($a, $b) = $row;
but this doesn't?
foreach ($table as list ($a, $b));
it seems to me that the two are equivalent.