Searched refs:shuffle (Results 1 – 18 of 18) sorted by relevance
5 /* Prototype : bool shuffle(array $array_arg)6 * Description: Randomly shuffle the contents of an array 11 * Test behaviour of shuffle when an array with default keys14 * before and after shuffle() function is applied on it25 /* Testing shuffle() function with array of integers */32 echo "\n-- return value from shuffle() function --\n";33 var_dump( shuffle($array_arg_int) ); // prints the return value from shuffle() function38 /* Testing shuffle() function with array of strings */46 var_dump( shuffle($array_arg_strings) ); // prints the return value from shuffle() function78 -- return value from shuffle() function --[all …]
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 it26 // printing the input array before the shuffle operation30 // applying shuffle() function on the input array31 echo "\n-- return value from shuffle() function --\n";32 var_dump( shuffle($array_arg) ); // prints the return value from shuffle() function40 *** Testing shuffle() : with associative array ***42 -- input array before shuffle() function is applied --[all …]
2 Test shuffle() function : error conditions 5 /* Prototype : bool shuffle(array $array_arg)6 * Description: Randomly shuffle the contents of an array 10 /* Test shuffle() to see that warning messages are emitted14 echo "*** Testing shuffle() : error conditions ***\n";17 echo "\n-- Testing shuffle() function with Zero arguments --\n";18 var_dump( shuffle() );24 var_dump( shuffle($array_arg, $extra_arg) );27 // by above shuffle() function calls34 *** Testing shuffle() : error conditions ***[all …]
2 Test shuffle() function : usage variations - unexpected values for 'array_arg' argument5 /* Prototype : bool shuffle(array $array_arg)6 * Description: Randomly shuffle the contents of an array 11 * Test behaviour of shuffle() when unexpected values are passed for 'array_arg'15 echo "*** Testing shuffle() : with unexpected values for 'array_arg' argument ***\n";82 // loop through the array to test shuffle() function87 var_dump( shuffle($value) );97 *** Testing shuffle() : with unexpected values for 'array_arg' argument ***146 Warning: shuffle() expects parameter 1 to be array, null given in %s on line %d151 Warning: shuffle() expects parameter 1 to be array, null given in %s on line %d[all …]
2 Test shuffle() function : usage variation - with MultiDimensional array 5 /* Prototype : bool shuffle(array $array_arg)6 * Description: Randomly shuffle the contents of an array 11 * Test behaviour of shuffle() function when multi-dimensional array is15 echo "*** Testing shuffle() : with multi-dimensional array ***\n";29 // calling shuffle() function with multi-dimensional array 30 var_dump( shuffle($array_arg) );35 // looping to test shuffle() with each sub-array in the multi-dimensional array40 var_dump( shuffle($array_arg[$i]) ); 49 *** Testing shuffle() : with multi-dimensional array ***[all …]
6 * proto bool shuffle ( array &$array )12 var_dump(shuffle($a));15 var_dump(shuffle($a));18 var_dump(shuffle($a));21 var_dump(shuffle($a));24 var_dump(shuffle($a));27 var_dump(shuffle($a));31 shuffle($arr1);35 shuffle($bigarray);39 shuffle($bigarray);
2 Test shuffle() function : usage variation - arrays with diff heredoc strings5 /* Prototype : bool shuffle(array $array_arg)6 * Description: Randomly shuffle the contents of an array 11 * Test behaviour of shuffle() when an array of heredoc strings is passed to 15 echo "*** Testing shuffle() : with array containing heredoc strings ***\n";65 // test shuffle() with array containing heredoc strings as values67 var_dump( shuffle($heredoc_array) ); 71 // test shuffle() with array containing heredoc strings as its keys 73 var_dump( shuffle($heredoc_asso_array) ); 80 \*\*\* Testing shuffle\(\) : with array containing heredoc strings \*\*\*
2 Test shuffle() function : usage variation - arrays with diff types of values5 /* Prototype : bool shuffle(array $array_arg)6 * Description: Randomly shuffle the contents of an array 11 * Test behaviour of shuffle() function when arrays having different15 echo "*** Testing shuffle() : arrays with diff types of values ***\n";51 // looping to test shuffle() with each sub-array in the $array_arg array52 echo "\n*** Testing shuffle() with arrays having different types of values ***\n";56 var_dump( shuffle($arr) ); 65 *** Testing shuffle() : arrays with diff types of values ***67 *** Testing shuffle() with arrays having different types of values ***
2 Test shuffle() function : usage variation - associative arrays with diff types of values5 /* Prototype : bool shuffle(array $array_arg)6 * Description: Randomly shuffle the contents of an array 11 * Test behaviour of shuffle() function when associative arrays 15 echo "*** Testing shuffle() : associative arrays with diff types of values ***\n";54 // looping to test shuffle() with each sub-array in the $array_arg array55 echo "\n*** Testing shuffle() with arrays having different types of values ***\n";59 var_dump( shuffle($arr) ); 68 *** Testing shuffle() : associative arrays with diff types of values ***70 *** Testing shuffle() with arrays having different types of values ***
2 Bug #24897 (inconsistent behaviour or shuffle() & array_multisort())6 shuffle($a);
2 Testing randomization of shuffle() and str_shuffle().16 shuffle($p);22 stats('shuffle', $a);35 shuffle
6 shuffle($input);
21 shuffle($in);
59 PHP_FUNCTION(shuffle);
1831 PHP_FUNCTION(shuffle) in PHP_FUNCTION() argument
3280 PHP_FE(shuffle, arginfo_shuffle)
5186 - Fixed bug #48224 (Incorrect shuffle in array_rand). (Etienne)5900 - Fixed bug #43020 (Warning message is missing with shuffle() and more
Completed in 62 milliseconds