I want to change order of following array to 2nd array's values. 
Array
(
    [2] => Array
        (
            [title] => Photometric Interpretation
            [name] => photometric_interpretation
        )
    [3] => Array
        (
            [title] => Make
            [name] => make
        )
    [4] => Array
        (
            [title] => Model
            [name] => model
        )
    [5] => Array
        (
            [title] => Strip Offsets
            [name] => strip_offsets
        )
    [6] => Array
        (
            [title] => Samples Per Pixel
            [name] => samples_per_pixel
        )
    [7] => Array
        (
            [title] => Rows Per Strip
            [name] => rows_per_strip
        )
)
I want to change order of above to following array's values.
Array
(
    [0] => 3
    [1] => 4
    [2] => 7
    [3] => 6
    [4] => 5
    [5] => 2
)
What I have tried
$index = array_flip(['3,4,7,6,5,2']);
$assigned_fields = array_merge($fisrt_array, $index);
My desired output is
Array
(
    [3] => Array
        (
            [title] => Make
            [name] => make
        )
    [4] => Array
        (
            [title] => Model
            [name] => model
        )
    [7] => Array
        (
            [title] => Rows Per Strip
            [name] => rows_per_strip
        )
    [6] => Array
        (
            [title] => Samples Per Pixel
            [name] => samples_per_pixel
        )
    [5] => Array
        (
            [title] => Strip Offsets
            [name] => strip_offsets
        )
    [2] => Array
        (
            [title] => Photometric Interpretation
            [name] => photometric_interpretation
        )
)
 
     
    