note 62713 modified in function.shuffle by danbrown

From: Date: Fri, 25 Jul 2008 17:47:37 +0000
Subject: note 62713 modified in function.shuffle by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-142718@lists.php.net to get a copy of this message
my throw at associative shuffle: <?php $keys = array_keys($arr); $seed = (float)microtime() * 1000000; srand($seed); shuffle($keys); srand($seed); shuffle($arr); $arr = array_combine($keys, $arr); ?> --was-- my throw at associative shuffle: $keys = array_keys($arr); $seed = (float)microtime() * 1000000; srand($seed); shuffle($keys); srand($seed); shuffle($arr); $arr = array_combine($keys, $arr); http://php.net/manual/en/function.shuffle.php

« previous php.notes (#142718) next »