I have an array of filenames gathered from a folder as follows:
$g = glob('uploads/thumbs/*.jpg');
Now, basing on the user choice, the images will be displayed in chronological order with an rsort($g) or shuffled by shuffle($g).
The problem is that the shuffle always returns the same order of the pictures! How can I solve this?
Probably this is some kind of reference problem, try this: