Posted by Chung Leong on 01/25/06 00:45
Jim Michaels wrote:
> I thought the problem was that each() will return a fresh array each time
> because of foo(). each() always adds to the array foo() returns.
> I also thought a better solution would be to use a foreach lop instead of
> while.
each() is a real function. It isn't a language construct, unlike a
foreach() statement. foo() then each() will be called in each
iteration.
Navigation:
[Reply to this message]
|