php - Pulling random numbers from an array -
i'm working on "card game" in cards randomly dealt 4 suites 4 players. created 2 separate arrays, 1 13 cards, , 1 4 suites. below code have 1 player. arrays: <?php $suite=array("clubs", "diamonds", "hearts", "spades"); $random_suite=array_rand($suite, 4); ?> <?php $card=array("ace", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "jack", "queen", "king"); $random_card=array_rand($card,5); ?> if statements (don't believe problem exists here): <?php if (!is_numeric($_get['players'])) { echo "you did not enter value number of players; click 'return' button , enter number."; } elseif ($_get['players'] < 1) { echo "you entered number less 1 minimum allowed; click 'return' button enter number."; } elseif