$array1 = array("1","2","3","4","5"); $array2 = array("2","4","6","8","10"); $diff = array_diff($array1, $array2); print_r($diff);