Re: [PRES] cvs: pres2 / show.php
| From: | Rasmus Lerdorf | Date: | Thu, 07 Nov 2002 07:28:30 +0000 |
| Subject: | Re: [PRES] cvs: pres2 / show.php | ||
| References: | 1 | Groups: | php.pres |
| Request: | Send a blank email to pres+get-500@lists.php.net to get a copy of this message | ||
> OK, I'll make the changes accordingly. BTW, the array pointer seems to
> be moved (without the reset(), the each() that follows doesn't do
> anything, however, the documentation says that the foreach() is supposed
> to operate on a copy of the array and *not* modify the array pointer?
>
> Is the documentation out of date, or is this a bug?
No bug, that is the way it is suppposed to work. foreach() uses the array
pointer to iterate over the array and provides a copy of the data in the
key,value pairs.
-Rasmus