Re: help with arrays
| From: | Eugene Lee | Date: | Tue, 23 Sep 2003 21:37:48 +0000 |
| Subject: | Re: help with arrays | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-163642@lists.php.net to get a copy of this message | ||
On Tue, Sep 23, 2003 at 01:49:03PM -0700, Chris W. Parker wrote:
:
: Robert Cummings <mailto:robert@interjinn.com>
said:
: >
: > foreach( $data as $key => $value )
:
: I don't use that syntax much so I'm not familiar with it. Maybe I should
: start eh?
Another caveat: it works on a *copy* of the array. This is fine for
small arrays, but may be a performance killer for larger arrays.