From: Wirianto Djunaidi Date: 2008-04-26T01:39:26+09:00 Subject: multi-dimensional arrays to 2-dimensional arrays ------=_Part_3341_10873585.1209141564274 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I have a recursive method that aggregates data in the form of 2-dimensional arrays. The problem is at the top of the recursion call, I ended up with multi-dimensional arrays which depend on how deep the recursion is. What is the best way to flatten multi-dimensional arrays back into 2-dimensional arrays? the data might look like this: [ [a, b, c], [ [ [d, e], [f, g] ], [h, i] ] and I would like to be flatten into: [ [a, b, c], [d, e], [f, g], [h, i] ] Thanks in advance, -DJ ------=_Part_3341_10873585.1209141564274--