日期:2014-05-17 浏览次数:20682 次
$a=array(1,2,3,4,5,6,7,8,9,0); $b=array(1,3,5,7,9); $out1 = array_diff($a, $b); $out2 = array_diff($b, $a); $out3 = array_merge($out1, $out2); foreach($out3 as $rs3){ echo $rs3.' '; //2 4 6 8 0 }