I have 2 array like
array (
0 => 'END PIECE',
1 => 'END PIECE',
2 => 'END PIECE',
3 => 'Title translation test 2',
4 => 'Title translation test 2',
5 => 'PIÈCE D\'EXTRÉMITÉ'
);
and
array (
0 => '47933',
1 => '47935',
2 => '47936',
3 => '47929',
4 => '47930',
5 => '47933'
);
I want to make ONE array from this 2 array like
array (
'END PIECE' => '47933',
'END PIECE' => '47935',
'END PIECE' => '47936',
'Title translation test' => '47929',
'Title translation test' => '47930',
'PIÈCE D\'EXTRÉMITÉ' => '47933'
);
Is it possible? PHP 5.3 version required, I have tried this
$c = array();
foreach($arr1 as $k => $val){
$c[] = array($arr2[$k] => $val);
}
But it not works
$c[$arr2[$k]] = $val;'END PIECE' => [1,2,3]END PIECE' => [1,2,3]also ok, if you can suggest