我有两个数组
$array1 = array("product_a" => "Nokia1", "product_b" => "Nokia11", "product_c" => "Nokia111", "Nokia1111");
$array2 = array("product_a" => "Nokia1", "Samsung", "Nokia1111");
我想将这两个数组和想要的输出比较为具有不同的键
像我的输出一样
Array
(
[product_b] => Nokia11
[product_c] => Nokia111
[0] => Nokia1111
)
有没有可供比较的默认php方法?