Ad Rotator, Random ad image list rotator

Sharing is caring!

This is a simple class that can be used to create ads that rotate according to a random order.

The class takes an array of image files name strings as parameter but it could also be HTML tags for rich media ads.

Then it shuffles the numbers assigned to each ad array position in a way that the shuffled array does not contain repeated ad numbers.
It displays randomized images from a group of specified images, without repetition.

Finally the class can return a new array of ads sorted by order determined by the shuffled ad numbers array. The returned array can be used to display one or more ads in the same page.

PHP Ads RotatorDownload ZIP File

Leave a Reply

Your email address will not be published. Required fields are marked *

Got Project on mind? Let's ConnectContact Us

Secured By miniOrange