Re: how to mix an array

From: Date: Sat, 23 Sep 2000 12:32:07 +0000
Subject: Re: how to mix an array
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-17420@lists.php.net to get a copy of this message
Hi Steven! On Thu, 21 Sep 2000, Steven Glogger wrote: > 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}? > see shuffle() function under `Array Function' in PHP manual. (includes an example, yay) -- teodor

« previous php.general (#17420) next »