<?php $types = ['a', 'b', 'c']; // 3x1 array $numbers = [1, 2, 3]; $arr = [$types, $numbers]; Foreach($arr[0] as $key => $val){ $new[] = array_column($arr, $key); } Var_dump($new);
You have javascript disabled. You will not be able to edit any code.