Home
last modified time | relevance | path

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

/PHP-8.4/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 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 Dbug24897.phpt2 Bug #24897 (inconsistent behaviour or shuffle() & array_multisort())
6 shuffle($a);
H A Dusort_variation11.phpt14 shuffle($array);
22 shuffle($array);
32 shuffle($array);
/PHP-8.4/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.4/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.4/
H A Drun-tests.php157 $valgrind, $sum_results, $shuffle, $file_cache, $num_repeats,
351 $shuffle = false;
564 $shuffle = true;
/PHP-8.4/ext/mbstring/tests/
H A Dhz_encoding.phpt59 shuffle($goodChars);
83 shuffle($goodChars);
111 shuffle($goodChars);
H A Dencoding_tests.inc136 shuffle($goodChars);
170 shuffle($goodChars);
186 shuffle($goodChars);
H A Diso2022jp_2004_encoding.phpt273 shuffle($jisx0208);
275 shuffle($jisx0213_1);
277 shuffle($jisx0213_2);
H A Diso2022jp_kddi_encoding.phpt160 shuffle($good);
173 shuffle($good);
H A Diso2022jp_ms_encoding.phpt133 shuffle($good);
H A Dutf_encodings.phpt726 shuffle($good);
747 shuffle($good);
/PHP-8.4/ext/standard/
H A Dbasic_functions.stub.php1662 function shuffle(array &$array): true {} function
H A Dbasic_functions_arginfo.h2340 ZEND_FUNCTION(shuffle);
2933 ZEND_FE(shuffle, arginfo_shuffle)
H A Darray.c3306 PHP_FUNCTION(shuffle) argument

Completed in 63 milliseconds