<p class="sougouContent"> 请问怎么查数组中的重复内容?并显示出来 </p> <br> <h2>回复讨论(解决方案)</h2> <p class="sougouAnswer"> 什么叫数组中重复的内容,把问题描述清楚别人才好回答! </p> <p class="sougouAnswer"> <div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="sycode" name="code">$a=array("Cat","Dog","Horse","Dog");$c=array_count_values($a); foreach($c as $k=>$v){ if($v>1) $ar[]=$k;}print_r($ar);</pre><div class="contentsignin">로그인 후 복사</div></div> <br> Array <br> ( <br> [0] => Dog <br> ) </p>