Rearranging multidimensional array
问题 I have an array in the following format: Array ( [0] => Array ( [0] => a [1] => b [2] => c ) [1] => Array ( [0] => d [1] => e [2] => f ) [2] => Array ( [0] => 0 [1] => 0 [2] => 0 ) [3] => Array ( [0] => 100 [1] => 200 [2] => 300 ) ) The indices in the first array(outer), i.e. 0 is for name, 1 for type, 2 for error and 3 for size. I have to rearrange this array in the following format: Array ( [0] => Array ( [name] => a [type] => d [error] => 0 [size] => 100 ) [1] => Array ( [name] => b [type]