<?php $a1 = [0, 1, 2]; $a2 = [3, 4, 5]; $result = []; foreach ($a1 as $index => $result[]) { $result[] = $a2[$index]; } var_export($result);
You have javascript disabled. You will not be able to edit any code.