![]() ![]() | ![]() |
1.1 misho 1: --TEST-- 2: Bug #48224 (array_rand no longer shuffles) 3: --FILE-- 4: <?php 5: $a = range(0, 100); 6: $a1 = array_rand($a, count($a)); 7: $a2 = array_rand($a, count($a)); 8: $a3 = array_rand($a, count($a)); 9: $a4 = array_rand($a, count($a)); 10: 11: var_dump($a1 === $a2 && $a1 === $a3 && $a1 === $a4); 12: 13: ?> 14: --EXPECT-- 15: bool(true)