ak007
Member
- Messages
- 216
- Reaction score
- 0
- Points
- 16
Heres A Very Simple Tutorial For Displaying Random Images And Text Lets Start With Random Images
------------
Functions We Will Use:
shuffle()
------------
Now The Random Text
Comments Question And Suggestions Are Welcomed
------------
Functions We Will Use:
shuffle()
------------
PHP:
<?php
$images = array("whacky.jpg" , "bush.jpg" , "xxx.jpg" , "BooM.jpg" , "blah.png");
shuffle($images);
echo "<img src=\"images/$images[1]\"/>";
?>
Now The Random Text
PHP:
<?php
$quotes = array("X10hosting RockZ","Blah Blah ","Knock Knock!!!","Whos there?","Its me!!","Who?");
shuffle($quotes);
echo $quotes[1];
?>
Last edited: