Lines Matching refs:shuffle
2 Test shuffle() function : basic functionality - array with default keys
6 * Test behaviour of shuffle when an array with default keys
9 * before and after shuffle() function is applied on it
12 echo "*** Testing shuffle() : with arrays having default keys ***\n";
20 /* Testing shuffle() function with array of integers */
22 // printing the input array with integers before the shuffle operation
23 echo "\n-- input array of integers before shuffle() function is applied --\n";
26 // applying shuffle() function on the input array of integers
27 echo "\n-- return value from shuffle() function --\n";
28 var_dump( shuffle($array_arg_int) ); // prints the return value from shuffle() function
30 echo "\n-- resultant array after shuffle() function is applied --\n";
33 /* Testing shuffle() function with array of strings */
35 // printing the input array with strings before the shuffle operation
36 echo "\n-- input array of strings before shuffle() function is applied --\n";
39 // applying shuffle() function on the input array of strings
40 echo "\n-- return value from shuffle() function --\n";
41 var_dump( shuffle($array_arg_strings) ); // prints the return value from shuffle() function
43 echo "\n-- resultant array after shuffle() function is applied --\n";
49 *** Testing shuffle() : with arrays having default keys ***
51 -- input array of integers before shuffle() function is applied --
73 -- return value from shuffle() function --
76 -- resultant array after shuffle() function is applied --
98 -- input array of strings before shuffle() function is applied --
120 -- return value from shuffle() function --
123 -- resultant array after shuffle() function is applied --