note 75904 deleted from control-structures.foreach by philip
| From: | philip@php.net | Date: | Wed, 18 Jun 2008 00:12:26 +0000 |
| Subject: | note 75904 deleted from control-structures.foreach by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-140549@lists.php.net to get a copy of this message | ||
Note Submitter: Steve Ward
----
@ kirk at proofed dot net
If you change the name of the value variable (i.e. $array) in the second foreach loop, the problem
goes away.
See explanation here:
"Looping through arrays with foreach"
http://groups.google.com/group/comp.lang.php/msg/bf35784c733ef439