As a result, I could have hundreds of arrays returned by a database query that I would need to merge. The arrays would have a structure like this:
CODE
$result[0] = array('item1', 'item2', 'item3');
$result[1] = array('item1', 'item2', 'item3', 'item4', 'item5', 'item6');
$result[2] = array('item1', 'item2', 'item3', 'item4');
$result[3] = array('item1', 'item2');
$result[1] = array('item1', 'item2', 'item3', 'item4', 'item5', 'item6');
$result[2] = array('item1', 'item2', 'item3', 'item4');
$result[3] = array('item1', 'item2');
So I would need a script that would do the following dynamically:
CODE
array_merge($result[0], $result[1], $result[2], $result[3]);
I've got a few ideas of how I could do this but each idea will take time to code, test, and compare to other options. I was hoping that somebody already knew a quick way to do this.
Thanks,
vujsa


