- var_dump: documentation ( source)
- array_intersect: documentation ( source)
- implode: documentation ( source)
- array_keys: documentation ( source)
<?php
$a = Array
(
"a" => "0,1",
"b" => "0,0",
"c" => "0,2",
"d" => "0,3",
"e" => "10,2"
);
$b = Array
(
1 => "0,3",
2 => "10,2"
);
$intersect = array_intersect($a, $b);
Var_dump($intersect);
Echo "matching keys is: " . Implode(", ", array_keys($intersect));