ibeautiful
<?php$a=array("第一"=>12,"第二"=>23,34,45);$b=array("第一"=>11,"第二"=>22,33,45);foreach ($a as $key=>$v1) {echo $key."=>". $v1."<br />";foreach($b as $key2=>$v2){if($v1==$v2){unset($a[$key]);//删除$a数组同值元素unset($b[$key2]);//删除$b数组同值元素}}}print_r($a);print_r($b);?>