Re: [PHP] Recursive Iteration over a collection of objects

2008-09-08 Thread Kevin Waterson
This one time, at band camp, David Lidstone <[EMAIL PROTECTED]> wrote: > which with hindsight is completely illogical! I also wasn't aware of the > constants. Is there a simple tutorial / docs you know of for SPL? http://www.phpro.org/tutorials/Introduction-to-SPL.html Kevin -- PHP General

Re: [PHP] Recursive Iteration over a collection of objects

2008-09-08 Thread Jochem Maas
David Lidstone schreef: Thanks very much to both of you. This does the trick! I had (stupidly) tried: foreach ($c as new RecursiveIteratorIterator($item)) which with hindsight is completely illogical! I also wasn't aware of the constants. Is there a simple tutorial / docs you know of for SPL?

Re: [PHP] Recursive Iteration over a collection of objects

2008-09-08 Thread David Lidstone
Thanks very much to both of you. This does the trick! I had (stupidly) tried: foreach ($c as new RecursiveIteratorIterator($item)) which with hindsight is completely illogical! I also wasn't aware of the constants. Is there a simple tutorial / docs you know of for SPL? I have tried numerous g

Re: [PHP] Recursive Iteration over a collection of objects

2008-09-07 Thread Nathan Nobbe
On Sun, Sep 7, 2008 at 11:05 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: > David Lidstone schreef: > >> Hi >> >> I am getting myself quite confused while trying to use SPL to recursively >> iterate through a collection of objects, and any help would be greatly >> appreciated! >> >> My collection of

Re: [PHP] Recursive Iteration over a collection of objects

2008-09-07 Thread Jochem Maas
David Lidstone schreef: Hi I am getting myself quite confused while trying to use SPL to recursively iterate through a collection of objects, and any help would be greatly appreciated! My collection of objects is contained in a class (which I frequently use to iterate through objects stored

[PHP] Recursive Iteration over a collection of objects

2008-09-04 Thread David Lidstone
Hi I am getting myself quite confused while trying to use SPL to recursively iterate through a collection of objects, and any help would be greatly appreciated! My collection of objects is contained in a class (which I frequently use to iterate through objects stored in an array in the class