I have a simple, two dimensional array like this:
Array ( [0] => Array ( [0] => abc [1] => 1
foreach($array as $key=> $element) { for($i=0; $i<$n; $i++) { $newArray[$key][$i] = $element[$i]; } }
Not sure if there is a more efficient method.