求一个数组合并执行效率高点的方法,相同键名的键值合并,去掉不同的
Array1
(
[tel] =>
[ip] =>
[address] =>
)
Array2
(
[id] => 36
[address] => china
[ip] => 127.0.0.1
[tel] => 12593
[post] => 2100000
)
以数组Array1为最终结果,把数组Array2中,相同键名的值合并到数组Array1 ,排序方式还是按Array1
希望得到的最终结果
Array1
(
[tel] => 12593
[ip] => 127.0.0.1
[address] => china
)