note 3626 deleted from function.each by felipe
| From: | felipe@php.net | Date: | Sat, 29 Dec 2007 16:44:11 +0000 |
| Subject: | note 3626 deleted from function.each by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-134129@lists.php.net to get a copy of this message | ||
Note Submitter: steve at juggler dot net
Reason: 5
----
As of PHP 4.0b3, the interpreter's not quite smart enough to manage the following:
while(list($k,$v)=each(array("first","second","third")) {
Instead, use:
$ary=array("first","second","third");
while (list($k,$v)=each($ary)) {