日期:2014-05-17 浏览次数:20531 次
$a=array("Cat","Dog","Horse","Dog"); $c=array_count_values($a); foreach($c as $k=>$v){ if($v>1) $ar[]=$k; } print_r($ar);