hmm...i dont think ur quite understanding what i mean. let me start over with a smaller script.
<?php
$number = 5;
$layout_file = "layout.txt";
$layout = file("$layout_file");
$random_position = array_rand($layout, $number);
$deck_file = "deck.txt";
$deck = file("$deck_file");
$random_card = array_rand($deck, $number);
foreach ($random_card as $card)
{
print $random_position . $deck[$card] . '</div>';
}
?>
i'd like a random
<div class=?>
tag printed infront of each card. The above code prints out like the following:
Arraycard1
Arraycard5
Arraycard4
Arraycard3
Arraycard2
the word array is being printed out instead of the div tag