0
如果我有一個這樣的數組:結合2個陣列爲1
$array = Array(
array(
[a] => something,
[b] => something
)
)
然後,我有另一個數組一樣,如果我想將它們結合起來,創造一個這樣的數組:
Array(
[0] => Array(
[a] => something,
[b] => something
)
[1] => Array(
[a] => something,
[b] => something
)
)
我該如何實現這一目標?我想用array_merge將有助於但給我:
Array(
[0] => Array(
[a] => something,
[b] => something
)
[1] => something,
[2] => something
)
)
什麼是數組(2)? – bigdaveygeorge
'數組(2)'是'$ new_array'。 '(2)'只是它裏面的物品數量。 – Condorcho