Hello:
I'm trying to build a simple script that will randomly display 2 banners, this is what I have so far. My question is how do I limit the output to 2 and make them random?
<?php
$Array = array(
"<a target=_blank href=http://www.test1.com><img src=Images/test1.gif border=0></a>",
"<a target=_blank href=http://www.test2.com><img src=Images/test2.gif border=0></a>",
"<a target=_blank href=http://www.test3.com><img src=Images/test3.gif border=0></a>",
"<a target=_blank href=http://www.test4.com><img src=Images/test4.gif border=0></a>"
);
foreach ($Array as $Value) {
print "$Value<br />\n";
}
?>
Any held would be great!