$best_hand['rank'] = R_TWO_PAIR;
    } elseif ($hPair) {
        $best_hand['rank'] = R_PAIR;
    } else {
        $best_hand['rank'] = R_HIGH_CARD;
    }
    return $best_hand;
}
require_once "poker_cards.php";
echo "<h3><u>Some Random Testing</u></h3><table>";
$pcards = new Cards();
for ($i = 0; $i < 20; $i++) {
    $pcards->Deal();
    unset($ph);
    unset($ch);
    $ph[] = $pcards->pickCard();
    $ph[] = $pcards->pickCard();
    $ch[] = $pcards->pickCard();
    $ch[] = $pcards->pickCard();
    $ch[] = $pcards->pickCard();
    $ch[] = $pcards->pickCard();
    $ch[] = $pcards->pickCard();
    echo "<tr><td><p><b>Select best from following.</b><br>";
    display_hand($ph);
    display_hand($ch);
    echo "</p></td>";
    $prank = getPlayerRank($ph, $ch);
    echo "<td><p><b>Result:{$prank['rank']} </b><br>";
    display_hand($prank);
    echo "</p></td></tr>";
}