Tue Oct 28, 2008 1:27 am
<?php
$cards = array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P");
// shuffle the cards
print_r($cards);
print "<BR><BR><BR>";
shuffle($cards);
// Use array_chunk() to divide the cards into four equal "hands"
$hands = array_chunk($cards, 4);
print_r($hands);
?>
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.