Source Code:
(back to article)
<?php $array1 = array("a" => "apple", "b" => "banana", "c" => "cherry"); $array2 = array("a" => "apple", "c" => "cherry", "d" => "date"); $result = array_diff_assoc($array1, $array2); print_r($result); ?>
Result:
Report an issue