Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $images = array
- (
- 'img/icon0.png',
- 'img/icon1.png',
- 'img/icon2.png',
- 'img/icon3.png',
- 'img/icon4.png',
- 'img/icon5.png',
- 'img/icon6.png',
- 'img/icon7.png',
- 'img/icon8.png',
- 'img/icon9.png',
- );
- // shuffle($images);
- foreach ($images as $image)
- {
- echo '<img src="' . $image . '" />';
- }
- echo '<br>';
- for ($x = 0; $x < 10; $x++) {
- echo '<img src="' . $images[rand(0,9)] . '" />';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement