echo '<div class="card">';
        if ($card['suit'] == 'H') {
            echo '<span class="hearts">' . $card_html['H'] . $card['value'] . '</span>';
        } elseif ($card['suit'] == 'C') {
            echo '<span class="clubs">' . $card_html['C'] . $card['value'] . '</span>';
        } elseif ($card['suit'] == 'D') {
            echo '<span class="diamonds">' . $card_html['D'] . $card['value'] . '</span>';
        } elseif ($card['suit'] == 'S') {
            echo '<span class="spades">' . $card_html['S'] . $card['value'] . '</span>';
        }
        echo '</div>';
    }
    echo '</div>';
}
require "poker_holdem.php";
$g = new pokerHoldem();
$g->Deal();
if ($pval11 != "") {
    for ($i = 1; $i <= 4; $i++) {
        $pval1 = "pval" . $i . "1";
        $pval1 = ${$pval1};
        $pval2 = "pval" . $i . "2";
        $pval2 = ${$pval2};
        $psuit1 = "psuit" . $i . "1";
        $psuit1 = ${$psuit1};
        $psuit2 = "psuit" . $i . "2";
        $psuit2 = ${$psuit2};
        $p = new pokerHoldemPlayer(1, $i);
        $p->id = $i;
        $p->nick_name = "Player: " . $i;
        $p->table_stack = 100;
<?php

if (!empty($_GET)) {
    while (list($name, $value) = each($_GET)) {
        ${$name} = $value;
    }
}
if (!empty($_POST)) {
    while (list($name, $value) = each($_POST)) {
        ${$name} = $value;
    }
}
require "functions.php";
require "poker_holdem.php";
validate_session();
function my_printr($a)
{
    echo "<pre>";
    print_r($a);
    echo "</pre>";
}
$g = new pokerHoldem();
$g->request['table_id'] = $table_id;
$g->request['request_player_id'] = $request_player_id;
$g->request['action'] = $action;
$g->request['bet_val'] = $bet_val;
$g->request['request_position'] = $request_position;
$g->request['nick_name'] = $nick_name;
$g->getHand();
$g->performAction();
$g->drawHand();