1: 2: 3: 4: 5: 6:
foreach ($array1 as $key => $value) { if (isset($array2[$key])) { $newArray[$key][0] = $array1[$key]; $newArray[$key][1] = $array2[$key]; } }