Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
03-30-2007, 05:51 AM #1
how to shuffle elements in an array?
I have a small doubt.
I have some 20 elements in an array.
I would like to shuffle them and display them.
$array=array('a', 'b', 'c', ....'r', 's');
I would like to shuffle and display the elements like this.
c, m, a,....e, n
I dont wish to repeat any element.
how can I do it?
03-30-2007, 05:56 AM #2
- Join Date
- Dec 2005
- Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
- Thanked 637 Times in 625 Posts
03-30-2007, 06:26 AM #3
From now, I will first search the manual before posting here.
thanks for your quick reply