Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Goes wherever:
- <link rel="stylesheet" type="text/css" href="style.css">
- under "Your Hand" for now:
- <?php
- $test = array(0, 6, 8, 50);
- revealHand($test);
- function revealHand($ids) {
- $numOfIds = count($ids);
- for ($i = 0; $i < $numOfIds; $i++) {
- $imgNum = $ids[$i];
- echo "<img src=$imgNum.png />";
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement