- array_intersect: documentation ( source)
- array_keys: documentation ( source)
<?php
$a = Array
(
0 => "0,1",
1 => "0,0",
2 => "0,2",
3 => "0,3",
4 => "10,2"
);
$b = Array
(
0 => "0,1",
1 => "0,0"
);
$intersect = array_intersect($a, $b);
$keys = array_keys($intersect);
If($keys == array_keys($b)){
Echo "they match";
}else{
Echo "don't match";
}