note 104536 deleted from function.shuffle by danbrown

From: Date: Tue, 21 Jun 2011 18:24:07 +0000
Subject: note 104536 deleted from function.shuffle by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-180828@lists.php.net to get a copy of this message
Note Submitter: Zack ---- Donald, your function is not correct. array_merge merges two arrays by appending the values of one to another. (array_combine is what merges key/value pairs.) Additionally, the original array is not changed, so ONLY the keys are shuffled. The correct code for an associative shuffle is posted by andjones a few posts down.

« previous php.notes (#180828) next »