我有一个看起来像这样的数组 POST
Array
(
[ponumber] => 111111
[man_part_number] => Array
(
[0] => 11C2555
[1] => 11C2555
[2] => 11C2555
[3] => 11C2555
)
[model] => Array
(
[0] => FORMS PRINTER 2500 SERIES
[1] => FORMS PRINTER 2500 SERIES
[2] => FORMS PRINTER 2500 SERIES
[3] => FORMS PRINTER 2500 SERIES
)
[damaged] => Array
(
[0] => 0
[1] => 0
[2] => 0
[3] => 0
)
[serial_number] => Array
(
[0] => CNCQ202070
[1] => CNCQ210800
[2] => MY5203B1KQ
[3] => CN1863Q0PQ
)
[skid] => Array
(
[0] => 1
[1] => 2
[2] => 3
[3] => 4
)
[submit] => Attach this serial number list to PO#111111
)
我需要将数组组合成
Array
(
[man_part_number] => Array
(
[0] = > 11C2555
)
[model] => Array
(
[0] => FORMS PRINTER 2500 SERIES
)
[damaged] => Array
(
[0] => 0
)
[serial_number] => Array
(
[0] => CNCQ202070
)
[skid] => Array
(
[0] => 1
)
[ponumber] => Array
(
[0] => 111111
}
}
依此类推,以便所有 [0] 也组合为 [1]、[2] 和 [3],但 ponumber 也需要添加到每个数组中,并且对于所有 4 个数组都是相同的。