Re: [PHP-DEV] alternative for foreach ()

2003-10-20 Thread Jaap van Ganswijk
At 2003-10-19 13:38 +0100, Wez Furlong wrote: >> It wouldn't surprise me when the foreach syntax would be >> deprecated soon... > >If you're trying to humourous, I suggest that you first earn >some karma by contributing some real code to the PHP project. > >Your suggestion will not be implemented b

Re: [PHP-DEV] alternative for foreach ()

2003-10-19 Thread Wez Furlong
> It wouldn't surprise me when the foreach syntax would be > deprecated soon... If you're trying to humourous, I suggest that you first earn some karma by contributing some real code to the PHP project. Your suggestion will not be implemented because it is redundant and confusing to have yet anot

[PHP-DEV] alternative for foreach ()

2003-10-19 Thread Jaap van Ganswijk
Hi all, I'd like to propose an alternative for the foreach statement. Of course the construct: while (list($i,$d)=each($A)) is much harder to read than: foreach ($A as $i=>$d) and although I had doubts at first I'm currently rewriting all my old scripts to the new format whenever I encounter