note 91107 deleted from function.array-rand by danbrown

From: Date: Mon, 25 May 2009 22:11:25 +0000
Subject: note 91107 deleted from function.array-rand by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-155986@lists.php.net to get a copy of this message
Note Submitter: theultramage at gmail dot com ---- Note that as of 5.2.10, the statistical glitch described by Reinoud Elhorst's post (http://www.php.net/manual/en/function.array-rand.php#74406) is fixed - and so after 9 years, array_rand's algorithm again preserves the order of keys from the input. If you want a random order, just shuffle the result. For those interested in the details, go to http://bugs.php.net/bug.php?id=48224 and read the html document linked to in the bugreport.

« previous php.notes (#155986) next »