CodeIgniter Forums

Full Version: How we can shuffle images in html one by one repeatdly?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Unknown[/eluser]
I want that all the images in array automatically shuffle one by one when we run it..
-----
Rug Store, Rugs, Oriental Rugs, Rug
Rugs for sale, Rugs Online, Large Rugs, Kilim

El Forum

[eluser]LuckyFella73[/eluser]
Use the php shuffle function on every page load:

Code:
shuffle($array_images);