Location: PHPKode > scripts > Deck > deck/test-deck-view.php

// Testing the deck class
// Gets all card IDs and then displays all the info related

// Use deck class

// Create deck - this also shuffles
$myDeck=new Deck();

// Shuffle again (not required because its already done but i'm just showing function call)

// Get all card IDs

// Loop thru and extract info on cards
foreach($allCards as $id){
	print("$counter. [<a href='test-deck-image.php?id=$id'>id=$id</a>] [suit=$cardSuitName] [rank=$cardRankName] <b>$cardName</b><BR><img alt='$cardName' width=72 height=96 src='test-deck-image.php?id=$id'><hr>\n");

Return current item: Deck