$value) { if($value == 3) $count3++; if($value == 2) $count2++; } $ans = "NO HAND"; if($count3 == 1) { if($count2 == 1) { $ans = "FULL HOUSE"; } else { $ans = "THREE CARD"; } } else { if($count2 == 2) { $ans = "TWO PAIR"; } if($count2 == 1) { $ans = "ONE PAIR"; } } print($ans); ?>