I have following two array
$array1 = array("product_a" => "Nokia1", "product_b" => "Nokia11", "product_c" => "Nokia111", "Nokia1111");
$array2 = array("product_a" => "Nokia1", "Samsung", "Nokia1111");
I want to compare these both array and want output as having different keys
Like my output as below
Array
(
[product_b] => Nokia11
[product_c] => Nokia111
[0] => Nokia1111
)
is there any default php method available to compare?
</div>