Tag Archives: foreach

How foreach actually works – PHP internals nicely explained by NikiC Advertisements

Link | Posted on by | Tagged , , , | 1 Comment

Iterating over Multiple Iterators at Once

PHP’s SPL has two build-in Iterators that deal with multiple iterators at once: AppendIterator and MultipleIterator. In this posting I’ll cover both a bit: AppendIterator will put one iterator after the other so it get’s like a long queue or … Continue reading

Posted in Developing, Hakre's Tips, PHP Development, Pressed | Tagged , , , , , , , | 1 Comment

Some PHP Iterator Fun

I must have had too much free time. Over at Stackoverflow some kind of PHP question pops up from time to time about how to distribute a sequence of data in form of a table or in columns. You already … Continue reading

Posted in Developing, Hakre's Tips, PHP Development, Pressed | Tagged , , , , , , , | 1 Comment