I have the following code:
$result = array_intersect($contacts1, $contacts2);
This generates:
Array
(
[21] =>
[22] =>
[23] =>
[24] =>
[25] =>
[26] =>
[28] =>
I have the following if statement:
if (empty($result)) { // i.e. NO INTERECTION
I just realized that this will not work as a test for no intersection because many elements are produced, all with the value null. Given this what is the best way to test for intersection of 2 arrays?