"Curt Zirzow" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> * Thus wrote John W. Holmes ([EMAIL PROTECTED]):
> >

[snip]

> don't but all that matters to most is: it works..  and foreach has
> taken over its job anyway.
Just a small comment... foreach() is not equal to a while/each loop. Foreach
uses a copy of the array, and not the array itself. This might not sound
important, but it was for me when I tried to add new elements to the array
in the middle of a foreach() loop. They didn't show up until after the loop,
which was a bit confusing for me at first. So occasionally when I need to
add elements during a loop, I still use while(list(..) = each(...)).

--
Ivo



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

Reply via email to