compare array php code example
Example: array_diff php
<?php
$arr_1 = array("a" => "car", "b" => "plane", "c" => "boat", "d" => "bike");
$arr_2 = array("e" => "car", "f" => "plane", "g" => "boat");
$result = array_diff($arr_1, $arr_2);
print_r($result);
/* Result:
Array
(
[d] => bike
)
*/