我有这个数组$a:
[0] => Array
(
[param] => banana
[value] => yellow
)
[1] => Array
(
[param] => lemon
[value] => 3
)
[2] => Array
(
[param] => apple
[value] => 18
)
...和数组$b:
[0] => Array
(
[param] => banana
[value] => brown
)
[1] => Array
(
[param] => orange
[value] => 3
)
[2] => Array
(
[param] => lemon
[value] => 4
)
[3] => Array
(
[param] => pear
[value] => green
)
Array$c应该是 的副本$a,但是,如果$b包含存在于 中的某些参数,则$afrom 的值$a应更新为 from 的值$b。
所以$c会变成:
[0] => Array
(
[param] => banana
[value] => brown
)
[1] => Array
(
[param] => lemon
[value] => 4
)
[2] => Array
(
[param] => apple
[value] => 18
)
有小费吗?
慕勒3428872
素胚勾勒不出你