Re: [PHP4BETA] request: foreach ($array as $key => &$value)

From: Date: Fri, 17 Dec 1999 07:49:42 +0000
Subject: Re: [PHP4BETA] request: foreach ($array as $key => &$value)
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-8031@lists.php.net to get a copy of this message
At 02:48 AM 12/17/99 +0100, Thies C. Arntzen wrote:
zeev, andi - would it be hard to implement this syntax, currently there's no good way of traversion an array *without* coping the values (very bad if you have lot's of subarrays). also we should enable foreach for objects as well i think...
It has been a while since we have touched foreach(). We should maybe consider changing it from copying to being a reference. I remember this was problematic but I'll try and think about it. It probably does make more sense as a reference. Andi --- Andi Gutmans <andi@zend.com> http://www.zend.com/

« previous php.version4 (#8031) next »