On Tue, Sep 23, 2003 at 05:44:46PM -0400, Robert Cummings wrote:
: On Tue, 2003-09-23 at 17:37, Eugene Lee wrote:
: > On Tue, Sep 23, 2003 at 01:49:03PM -0700, Chris W. Parker wrote:
: > : 
: > : Robert Cummings <mailto:[EMAIL PROTECTED]> 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.
: 
: I don't think you have enough knowledge of the PHP internals to make
: that claim :)

You're right.  I know little of PHP internals.  I'm just going by what
little the official documentation tells me.  :-)

        http://www.php.net/manual/en/control-structures.foreach.php

        Note: Also note that foreach operates on a copy of the specified
        array and not the array itself.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to