我有這兩個數組。我想陣列b
合併到陣列1 product[0]
下顯示,oranges
在product[1]
和lemon
在product[2]
:將陣列互相合並
$a = Array
(
[0] => Array
(
[Customer] => Array
(
[id] => 46714
)
[Product] => Array
(
[id] => 148
)
)
[1] => Array
(
[Customer] => Array
(
[id] => 46714
)
[Product] => Array
(
[id] => 148
)
)
[2] => Array
(
[Customer] => Array
(
[id] => 46714
)
[Product] => Array
(
[id] => 148
)
)
)
$b = array(
[0] => apples
[1] => Orange
[2] => Lemon
)
或者你剛剛忘記顯示'$ b'數組,因此無法回答問題嗎? – Orbling 2011-05-06 22:59:37
替換它,ID旁邊的另一個字段(如果是,稱爲)? – Autolycus 2011-05-06 23:00:50