Home
last modified time | relevance | path

Searched refs:shuffle (Results 1 – 17 of 17) sorted by relevance

/PHP-8.0/ext/standard/tests/array/
H A Dshuffle_basic1.phpt2 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 Dshuffle_basic2.phpt6 * 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 Darray_shuffle_basic.phpt11 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 Dshuffle_variation2.phpt2 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 Dshuffle_variation5.phpt2 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 Dbug24897.phpt2 Bug #24897 (inconsistent behaviour or shuffle() & array_multisort())
6 shuffle($a);
H A Dshuffle_variation3.phpt2 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 Dshuffle_variation4.phpt2 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 Dusort_variation11.phpt14 shuffle($array);
22 shuffle($array);
32 shuffle($array);
/PHP-8.0/ext/standard/tests/strings/
H A D004.phpt2 Testing randomization of shuffle() and str_shuffle().
16 shuffle($p);
22 stats('shuffle', $a);
35 shuffle
/PHP-8.0/ext/spl/tests/
H A Dheap_005.phpt6 shuffle($input);
H A Dheap_006.phpt6 shuffle($input);
H A Dheap_003.phpt21 shuffle($in);
/PHP-8.0/
H A Drun-tests.php150 $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 Dbasic_functions.stub.php134 function shuffle(array &$array): bool {} function
H A Dbasic_functions_arginfo.h2265 ZEND_FUNCTION(shuffle);
2890 ZEND_FE(shuffle, arginfo_shuffle)
H A Darray.c2994 PHP_FUNCTION(shuffle) argument

Completed in 61 milliseconds