Reply to Re: For gurus: bug in php? Recursive foreach dont work properly.

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация