Posted by Vince Morgan on 04/12/07 10:25
"Toby A Inkster" <usenet200703@tobyinkster.co.uk> wrote in message
news:gr81f4-4kp.ln1@ophelia.g5n.co.uk...
> Tamagafk wrote:
>
> > Hi! Looks like there is a bug in php. If I have function which uses
> > foreach to run trough array recursively, the lop-level foreach
> > interupted by lover-level foreach'es. If I use simply 'for' everything
> > is ok.
>
> It's not a bug -- it's a "feature". Internally, arrays in PHP have a
> "pointer" (not in the C sense of the word) which points at the "current"
Why not in the "C sense"?
Something similar to an itterator in C++ ?
TIA
Vince
[Back to original message]
|