Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- Function getCardDeck(){
- $temp=array(
- 'H'=>array(
- 1=>'A',
- 2=>2,
- 3=>3,
- 4=>4,
- 5=>5,
- 6=>6,
- 7=>7,
- 8=>8,
- 9=>9,
- 10=>10,
- 11=>'J',
- 12=>'Q',
- 13=>'K'
- ),
- 'C'=>array(
- 1=>'A',
- 2=>2,
- 3=>3,
- 4=>4,
- 5=>5,
- 6=>6,
- 7=>7,
- 8=>8,
- 9=>9,
- 10=>10,
- 11=>'J',
- 12=>'Q',
- 13=>'K'
- ),
- 'D'=>array(
- 1=>'A',
- 2=>2,
- 3=>3,
- 4=>4,
- 5=>5,
- 6=>6,
- 7=>7,
- 8=>8,
- 9=>9,
- 10=>10,
- 11=>'J',
- 12=>'Q',
- 13=>'K'
- ),
- 'S'=>array(
- 1=>'A',
- 2=>2,
- 3=>3,
- 4=>4,
- 5=>5,
- 6=>6,
- 7=>7,
- 8=>8,
- 9=>9,
- 10=>10,
- 11=>'J',
- 12=>'Q',
- 13=>'K'
- )
- );
- return ($temp);
- }
- $deck = getCardDeck();
- echo '<pre>';
- print_r($deck);
- echo '</pre>';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement