How to do like this array using foreach?

$array = [
[
 'column 1',
 'column 2',
],
[
1,2
]
 ];
June 7th 19 at 14:29
1 answer
June 7th 19 at 14:31
80% of success is normally worded question ))) . Moreover, often when I formulate , he find the answer)))
I suppose that from one array to another, where the first subarray contains the key and the second value. For example :
$testArray = ['1'=>'ODYN', '2'=>'DYVA' , '3'=>'TRA', '4'=>'CATIRA' ];
$result =[];
foreach($testArray as $k=>$v){
 $result[0][] = $k;
 $result[1][] = $v;
}

var_dump($result);

Find more questions by tags PHP