Page 1 of 1

how to convert simple array in to nested array

Posted: Thu Jul 26, 2007 6:00 am
by ali_engr
I have an array of arrays, each element contain, id, parent id & title.

I want to generate nested array on the bases of parent id.

Do any one have such recursive algo for conversion of simple array into nested one?

Please help me.

Thanks,

Posted: Thu Jul 26, 2007 6:32 am
by miro_igov

Posted: Thu Jul 26, 2007 6:37 am
by feyd
This thread is another duplicate. Stop or we'll force you to stop.

Locked.