Lines Matching refs:shuffle
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 emitted
14 echo "*** Testing shuffle() : error conditions ***\n";
17 echo "\n-- Testing shuffle() function with Zero arguments --\n";
18 var_dump( shuffle() );
21 echo "\n-- Testing shuffle() function with more than expected no. of arguments --\n";
24 var_dump( shuffle($array_arg, $extra_arg) );
27 // by above shuffle() function calls
34 *** Testing shuffle() : error conditions ***
36 -- Testing shuffle() function with Zero arguments --
38 Warning: shuffle() expects exactly 1 parameter, 0 given in %s on line %d
41 -- Testing shuffle() function with more than expected no. of arguments --
43 Warning: shuffle() expects exactly 1 parameter, 2 given in %s on line %d