<?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"; }
You have javascript disabled. You will not be able to edit any code.