note 97056 deleted from function.end by danbrown
| From: | danbrown@php.net | Date: | Tue, 30 Mar 2010 14:28:37 +0000 |
| Subject: | note 97056 deleted from function.end by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-167529@lists.php.net to get a copy of this message | ||
Note Submitter: janogarcia dot es at gmail dot com
----
A warning on the previous two notes (#95904, #94213):
Please note that "foreach has some side effects on the array pointer. Don't rely on the
array pointer during or after the foreach without resetting it."
http://php.net/manual/en/control-structures.foreach.php
You are better off with something along the lines of this http://www.php.net/manual/en/control-structures.foreach.php#90492