替換具有多個陣列陣列我有主陣列,我想替換PHP通過鍵
Array
(
[0] => {title-1}
[1] => zebra
[2] => {title-1}
[3] => fruit
[4] => {title-2}
[5] => cars
[6] => {title-3}
[7] => city
[8] => {title-3}
[9] => amazing
[10] => gold
[11] => {title-2}
)
,然後我有3個陣列那樣
Array
(
[0] => Blue
[2] => Red
)
Array
(
[6] => lamborghini
[8] => bugati
)
Array (
[4] => Yellow
[11] => dodge
)
我要輸出像那
(
[0] => blue
[1] => zebra
[2] => red
[3] => fruit
[4] => yellow
[5] => cars
[6] => lamborghini
[7] => city
[8] => bugati
[9] => amazing
[10] => gold
[11] => dodge
)
我嘗試使用array_replace_recursive()但只適用於一個數組 可以幫助我的任何人