PHP map one array to another array [closed]

I have an array with the following structure:

myArray => array (
    'id' => array (
        0 => 'ID1',
        1 => 'ID2',
    ),
    'a' => array (
        0 => 'A1',
        1 => 'A2',
    ),
    'b' => array (
        0 => 'B1',
        1 => 'B2',
    ),
    'c' => array (
        0 => 'C1',
        1 => 'C2',
    ),
    'd' => array (
        0 => '2000',
        1 => '3000',
    )
)

But, I need to remap it to have the following structure:

myNewArray => array (
    0 => array (
        'id' => 'ID1',
        'a' => 'A1',
        'b' => 'B1',
        'c' => 'C1',
        'd' => 2000
    ),
    1 => array (
        'id' => 'ID2',
        'a' => 'A2',
        'b' => 'B2',
        'c' => 'C2',
        'd' => 3000
    )
)

Even though I only placed two indices, the idea is to go through the entire array (which can have much more than 2 indices) and remap it.

How to do this? Thanks!