Searched refs:shuffle (Results 1 – 17 of 17) sorted by relevance
/PHP-7.4/ext/standard/tests/array/ |
H A D | shuffle_basic1.phpt | 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 keys 14 * before and after shuffle() function is applied on it 25 /* 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() function 38 /* Testing shuffle() function with array of strings */ 46 var_dump( shuffle($array_arg_strings) ); // prints the return value from shuffle() function 78 -- return value from shuffle() function -- [all …]
|
H A D | shuffle_basic2.phpt | 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 26 // printing the input array before the shuffle operation 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 40 *** Testing shuffle() : with associative array *** 42 -- input array before shuffle() function is applied -- [all …]
|
H A D | array_shuffle_basic.phpt | 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);
|
H A D | shuffle_variation2.phpt | 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 is 15 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 array 40 var_dump( shuffle($array_arg[$i]) ); 49 *** Testing shuffle() : with multi-dimensional array *** [all …]
|
H A D | shuffle_variation5.phpt | 2 Test shuffle() function : usage variation - arrays with diff heredoc strings 5 /* 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 values 67 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 \*\*\*
|
H A D | shuffle_variation3.phpt | 2 Test shuffle() function : usage variation - arrays with diff types of values 5 /* Prototype : bool shuffle(array $array_arg) 6 * Description: Randomly shuffle the contents of an array 11 * Test behaviour of shuffle() function when arrays having different 15 echo "*** Testing shuffle() : arrays with diff types of values ***\n"; 51 // looping to test shuffle() with each sub-array in the $array_arg array 52 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 ***
|
H A D | shuffle_variation4.phpt | 2 Test shuffle() function : usage variation - associative arrays with diff types of values 5 /* 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 array 55 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 ***
|
H A D | bug24897.phpt | 2 Bug #24897 (inconsistent behaviour or shuffle() & array_multisort()) 6 shuffle($a);
|
H A D | usort_variation11.phpt | 14 shuffle($array);
|
/PHP-7.4/ext/standard/tests/strings/ |
H A D | 004.phpt | 2 Testing randomization of shuffle() and str_shuffle(). 16 shuffle($p); 22 stats('shuffle', $a); 35 shuffle
|
/PHP-7.4/ext/spl/tests/ |
H A D | heap_005.phpt | 6 shuffle($input);
|
H A D | heap_006.phpt | 6 shuffle($input);
|
H A D | heap_003.phpt | 21 shuffle($in);
|
/PHP-7.4/ext/standard/ |
H A D | php_array.h | 57 PHP_FUNCTION(shuffle);
|
H A D | basic_functions.c | 3336 PHP_FE(shuffle, arginfo_shuffle)
|
H A D | array.c | 3042 PHP_FUNCTION(shuffle) argument
|
/PHP-7.4/ |
H A D | run-tests.php | 58 $user_tests, $valgrind, $sum_results, $shuffle; 307 $shuffle = false; 497 $shuffle = true; 1346 …est_results, $failed_tests_file, $result_tests_file, $PHP_FAILED_TESTS, $shuffle, $SHOW_ONLY_GROUP… 1400 if ($shuffle) { 1401 shuffle($test_files); 1553 $batchSize = $shuffle ? 4 : 32;
|
Completed in 78 milliseconds