Re: how to mix an array
| From: | The Captain | Date: | Sat, 23 Sep 2000 08:40:10 +0000 |
| Subject: | Re: how to mix an array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-17572@lists.php.net to get a copy of this message | ||
that's very simple:
there's a command to mix up an array called shuffle
http://www.php.net/manual/function.shuffle.php
good luck
----- Original Message -----
From: Steven Glogger <list@glogger.ch>
To: <php-general@lists.php.net>
Sent: Thursday, September 21, 2000 7:49 AM
Subject: [PHP] how to mix an array
> hi there
>
> is there a good way to mix randomly the content of an array.
> let's say if you have a={1,2,3,4,5} --> a={3,4,1,5,2}?
>
> greetings
>
> steven
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>