Lines Matching refs:shuffle
2 Test shuffle() function : basic functionality - with associative array
5 /* Prototype : bool shuffle(array $array_arg)
6 * Description: Randomly shuffle the contents of an array
11 * Test behaviour of shuffle when an associative array is
14 * before and after shuffle() function is applied on it
17 echo "*** Testing shuffle() : with associative array ***\n";
26 // printing the input array before the shuffle operation
27 echo "\n-- input array before shuffle() function is applied --\n";
30 // applying shuffle() function on the input array
31 echo "\n-- return value from shuffle() function --\n";
32 var_dump( shuffle($array_arg) ); // prints the return value from shuffle() function
34 echo "\n-- resultant array after shuffle() function is applied --\n";
40 *** Testing shuffle() : with associative array ***
42 -- input array before shuffle() function is applied --
64 -- return value from shuffle() function --
67 -- resultant array after shuffle() function is applied --