php4-beta | 199912
Date: 12/17/99
- Next message: Andi Gutmans: "Re: [PHP4BETA] Apache2?"
- Previous message: Eli Marmor: "Re: [PHP4BETA] Apache2?"
- Next in thread: Andrei Zmievski: "Re: [PHP4BETA] request: foreach ($array as $key => &$value)"
- Reply: Andrei Zmievski: "Re: [PHP4BETA] request: foreach ($array as $key => &$value)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <email protected>> http://www.zend.com/-- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe <email protected> For additional commands, e-mail: php4beta-help <email protected> To contact the list administrators, e-mail: php4beta-admin <email protected>
- Next message: Andi Gutmans: "Re: [PHP4BETA] Apache2?"
- Previous message: Eli Marmor: "Re: [PHP4BETA] Apache2?"
- Next in thread: Andrei Zmievski: "Re: [PHP4BETA] request: foreach ($array as $key => &$value)"
- Reply: Andrei Zmievski: "Re: [PHP4BETA] request: foreach ($array as $key => &$value)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

