
';
// We have created our first ad. We simple just put the format of the ad within an $ads[] variable. We can add as many ad's as we want as it is an array and won't overwrite the variable.
$ads[] = '
';
//We have no added another. Now we will display the ad's.
shuffle($ads);
// We will use the PHP function shuffle to randomise our advertisements.
echo $ads[0];
// We echo the first ad in the array. The array has been shuffled so the first ad will change.
?>