<?php $arr = [ 0 => [1, 2, 3, 4], 1 => ['one', 'two', 'three', 'four'] ]; $res = []; foreach ($arr[0] as $key => $val){ $res[] = array_column($arr, $key); } var_dump($res);
You have javascript disabled. You will not be able to edit any code.