Justtechjobs.com Find a programming school near you






Online Campus Both


php4-beta | 199912

Re: [PHP4BETA] request: foreach ($array as $key => &$value) From: Andi Gutmans (andi <email protected>)
Date: 12/17/99

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>