This is my two arrays:
$head_office = array(600,400,534,678,601,90);
$Sb_office = array(600,400,530,678,600,90,84);
My desire output:
array(600,400,678,90);
I am trying:
print_r(array_intersect($Sb_office,$head_office));
Output:
Array ( [0] => 600 [1] => 400 [3] => 678 [4] => 600 [5] => 90 )
How can I avoid the value 600 ?
NB: I am not removing duplicate values. I want to get matched values between 2 arrays.