我有幾個數組,我想合併成新的數組,但每個新數組需要從每個值有一個值。僅僅創建一個多維數組是不夠的。所以任何幫助都會很棒。從新組合的數組創建多維數組
我有這樣的陣列
Array (
[0] => Array (
[0] => Supplier 1
[1] => Supplier 1
[2] => Supplier 2
)
[1] => Array (
[0] => Product 1
[1] => Product 2
[2] => Product 3
)
[2] => Array (
[0] => 123456
[1] => 654321
[2] => 111111
)
[3] => Array (
[0] => 7
[1] => 40
[2] => 5
)
)
但我需要它是這樣
Array (
[0] => Array (
[supplier] => Supplier 1
[descr] => Product 1
[partid] => 123456
[quantity] => 7
)
[1] => Array (
[supplier] => Supplier 1
[descr] => Product 2
[partid] => 654321
[quantity] => 40
)
[2] => Array (
[supplier] => Supplier 2
[descr] => Product 3
[partid] => 111111
[quantity] => 5
)
)
我還沒有太多嘗試,我只搜索一個類似的問題但找不到我可以使用的任何東西 – Bart