I want content of this PHP variable to come into random order each time page is refreshed or visited.
Such as
$test = 'a, b, c, d, e, f';
I want best way to get it randomly, example
$test = 'c, b, d, f, a, e';
$test = 'd, e, c, a, f, b';
Any solution?
I suggest something like this:
What this code does:
explodemakes an array with items likea,b,cect.shuffleshuffles the arrayimplodeput a,between each item, so we get the origional randomized string back