Source Code:
(back to article)
<?php $array1 = array("a" => "red", "b" => "green", "c" => "blue"); $array2 = array("d" => "pink", "e" => "purple", "f" => "orange"); $result = array_diff_key($array1, $array2); print_r($result); ?>
Result:
Report an issue