NYCPHP Meetup

NYPHP.org

[nycphp-talk] Flattening a Tree

csnyder chsnyder at gmail.com
Tue Feb 24 08:05:23 EST 2009


On Mon, Feb 23, 2009 at 11:12 PM, Ajai Khattri <ajai at bitblit.net> wrote:
> On Mon, 23 Feb 2009, Tim Lieberman wrote:
>
>> Yup, your standard depth-first tree traversal.
>
> But in order to build a flat array, I'd have to pass that by reference
> into my recursive function so it can append the each node right?
>

What are you fishing for? Write some code and try it.



More information about the talk mailing list