-2
I have the following array:
$array_atual = array (
'id_item' => array('1', '3'), // 'id_item', 'id_item'
'cantidad' => array('15', '10') // 'cantidad', 'cantidad'
);
I’d like to leave it this way:
$array_final (
'0' => array('1', '15'); // 'id_item', 'cantidad'
'1' => array('3', '10') // 'id_item', 'cantidad'
);
How can I make that change?
This is basically a "matrix transposition," which I’ve already answered here
– Isac