$x) { $a++; }elseif($c[$i] == $x){ $d++; }else{ $b++; } } if($a > 0 && $b > 0){ echo "Yes"; }elseif($n == 1 && $d == 1){ echo "Yes"; }else{ echo "No"; } ?>