$a=array("Cat","Dog","Horse","Dog");$c=array_count_values($a); foreach($c as $k=>$v){ if($v>1) $ar[]=$k;}print_r($ar);