Searched refs:shuffle (Results 1 – 17 of 17) sorted by relevance
/PHP-8.0/ext/standard/tests/array/ |
H A D | shuffle_basic1.phpt | 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 20 /* Testing shuffle() function with 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 33 /* Testing shuffle() function with 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 73 -- return value from shuffle() function -- [all …]
|
H A D | shuffle_basic2.phpt | 6 * Test behaviour of shuffle when an associative array is 9 * before and after shuffle() function is applied on it 12 echo "*** Testing shuffle() : with associative array ***\n"; 21 // printing the input array before the shuffle operation 25 // applying shuffle() function on the input array 26 echo "\n-- return value from shuffle() function --\n"; 27 var_dump( shuffle($array_arg) ); // prints the return value from shuffle() function 35 *** Testing shuffle() : with associative array *** 37 -- input array before shuffle() function is applied -- 59 -- return value from shuffle() function -- [all …]
|
H A D | array_shuffle_basic.phpt | 11 var_dump(shuffle($a)); 14 var_dump(shuffle($a)); 17 var_dump(shuffle($a)); 20 var_dump(shuffle($a)); 23 var_dump(shuffle($a)); 26 var_dump(shuffle($a)); 30 shuffle($arr1); 34 shuffle($bigarray); 38 shuffle($bigarray);
|
H A D | shuffle_variation2.phpt | 2 Test shuffle() function : usage variation - with MultiDimensional array 6 * Test behaviour of shuffle() function when multi-dimensional array is 10 echo "*** Testing shuffle() : with multi-dimensional array ***\n"; 24 // calling shuffle() function with multi-dimensional array 25 var_dump( shuffle($array_arg) ); 30 // looping to test shuffle() with each sub-array in the multi-dimensional array 31 echo "\n*** Testing shuffle() with arrays having different types of values ***\n"; 35 var_dump( shuffle($array_arg[$i]) ); 44 *** Testing shuffle() : with multi-dimensional array *** 114 *** Testing shuffle() with arrays having different types of values ***
|
H A D | shuffle_variation5.phpt | 2 Test shuffle() function : usage variation - arrays with diff heredoc strings 6 * Test behaviour of shuffle() when an array of heredoc strings is passed to 10 echo "*** Testing shuffle() : with array containing heredoc strings ***\n"; 60 // test shuffle() with array containing heredoc strings as values 62 var_dump( shuffle($heredoc_array) ); 66 // test shuffle() with array containing heredoc strings as its keys 68 var_dump( shuffle($heredoc_asso_array) ); 75 \*\*\* Testing shuffle\(\) : with array containing heredoc strings \*\*\*
|
H A D | bug24897.phpt | 2 Bug #24897 (inconsistent behaviour or shuffle() & array_multisort()) 6 shuffle($a);
|
H A D | shuffle_variation3.phpt | 2 Test shuffle() function : usage variation - arrays with diff types of values 6 * Test behaviour of shuffle() function when arrays having different 10 echo "*** Testing shuffle() : arrays with diff types of values ***\n"; 46 // looping to test shuffle() with each sub-array in the $array_arg array 47 echo "\n*** Testing shuffle() with arrays having different types of values ***\n"; 51 var_dump( shuffle($arr) ); 60 *** Testing shuffle() : arrays with diff types of values *** 62 *** 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 6 * Test behaviour of shuffle() function when associative arrays 10 echo "*** Testing shuffle() : associative arrays with diff types of values ***\n"; 49 // looping to test shuffle() with each sub-array in the $array_arg array 50 echo "\n*** Testing shuffle() with arrays having different types of values ***\n"; 54 var_dump( shuffle($arr) ); 63 *** Testing shuffle() : associative arrays with diff types of values *** 65 *** Testing shuffle() with arrays having different types of values ***
|
H A D | usort_variation11.phpt | 14 shuffle($array); 22 shuffle($array); 32 shuffle($array);
|
/PHP-8.0/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-8.0/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-8.0/ |
H A D | run-tests.php | 150 $user_tests, $valgrind, $sum_results, $shuffle, $file_cache; 405 $shuffle = false; 616 $shuffle = true; 1390 …est_results, $failed_tests_file, $result_tests_file, $PHP_FAILED_TESTS, $shuffle, $SHOW_ONLY_GROUP… 1444 if ($shuffle) { 1445 shuffle($test_files); 1606 $maxBatchSize = $valgrind ? 1 : ($shuffle ? 4 : 32);
|
/PHP-8.0/ext/standard/ |
H A D | basic_functions.stub.php | 134 function shuffle(array &$array): bool {} function
|
H A D | basic_functions_arginfo.h | 2265 ZEND_FUNCTION(shuffle); 2890 ZEND_FE(shuffle, arginfo_shuffle)
|
H A D | array.c | 2994 PHP_FUNCTION(shuffle) argument
|
Completed in 101 milliseconds