=0; $j=$j-1){ if ($ball==$arr[$j]){ $same=1; // echo "*"; break; } } if ($same==0) { $arr[$i] = $ball; // echo " ".$ball." "; $i = $i+1; } } //echo "

*****************
"; sort($arr); echo $loop." : "; for ($i=0; $i<$n; $i=$i+1) echo ""; echo "

"; } ?>