How to combine a multi dimensional array into a single array
<p>I have an array POST that looks like this</p>

<pre><code>Array
(
[ponumber] =&gt; 111111
[man_part_number] =&gt; Array
    (
        [0] =&gt; 11C2555
        [1] =&gt; 11C2555
        [2] =&gt; 11C2555
        [3] =&gt; 11C2555
    )

[model] =&gt; Array
    (
        [0] =&gt; FORMS PRINTER 2500 SERIES
        [1] =&gt; FORMS PRINTER 2500 SERIES
        [2] =&gt; FORMS PRINTER 2500 SERIES
        [3] =&gt; FORMS PRINTER 2500 SERIES
    )

[damaged] =&gt; Array
    (
        [0] =&gt; 0
        [1] =&gt; 0
        [2] =&gt; 0
        [3] =&gt; 0
    )

[serial_number] =&gt; Array
    (
        [0] =&gt; CNCQ202070
        [1] =&gt; CNCQ210800
        [2] =&gt; MY5203B1KQ
        [3] =&gt; CN1863Q0PQ
    )

[skid] =&gt; Array
    (
        [0] =&gt; 1
        [1] =&gt; 2
        [2] =&gt; 3
        [3] =&gt; 4
    )

[submit] =&gt; Attach this serial number list to PO#111111
)
</code></pre>

<p>I need the array to be combined into</p>

<pre><code>Array
(
[man_part_number] =&gt; Array
    (
        [0] = &gt; 11C2555
    )
[model] =&gt; Array
    (
        [0] =&gt; FORMS PRINTER 2500 SERIES
    )
[damaged] =&gt; Array
    (
        [0] =&gt; 0
    )
[serial_number] =&gt; Array
    (
        [0] =&gt; CNCQ202070
    )
[skid] =&gt; Array
    (
        [0] =&gt; 1
    )
[ponumber] =&gt; Array
    (
        [0] =&gt; 111111
    }
}
</code></pre>

<p>and so on so that all the [0] are combined [1],[2] and [3] as well, but the ponumber needs to added to each array as well and will be the same for all 4.</p>
