note 52254 deleted from function.shuffle by nlopess

From: Date: Tue, 26 Apr 2005 13:00:49 +0000
Subject: note 52254 deleted from function.shuffle by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-88559@lists.php.net to get a copy of this message
Note Submitter: boycott-riaa at miqrogroove dot com Reason: useless ---- Unlike other array functions, shuffle() does not return an array! The following will NOT work as expected: $array = shuffle(range(1, 5)); Instead: $array = range(1, 5); shuffle($array); This is probably intentional to make it work faster. Enjoy -- Miqro

« previous php.notes (#88559) next »