<? $arr1 = array("Paul"=>25, "Ildiko"=>38, "Nick"=>27); $arr2 = array("Ildiko"=>27, "Paul"=>38); print "\nIntersect:\n"; var_dump(array_intersect($arr1, $arr2)); ?>