|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-08-24 16:11 UTC] dbs@php.net
[2005-08-24 16:16 UTC] dbs@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 14 03:00:01 2025 UTC |
Description: ------------ shuffle clobbers the keys in the array, this should probably be documented, currently it is not mentioned. Reproduce code: --------------- $a = array('hi'=>'a', 'fred'=>'b', 'how'=>'c', 'is'=>'d', 'wilma'=>'e'); shuffle($a); Array ( [0] => b [1] => c [2] => a [3] => e [4] => d )