how to convert simple array in to nested array
Posted: Thu Jul 26, 2007 6:00 am
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,
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,