Lines Matching refs:array_rand
2 array_rand() tests
7 var_dump(array_rand(array()));
13 var_dump(array_rand(array(), 0));
19 var_dump(array_rand(array(1,2,3), 0));
25 var_dump(array_rand(array(1,2,3), -1));
31 var_dump(array_rand(array(1,2,3), 10));
36 var_dump(array_rand(array(1,2,3), 3));
37 var_dump(array_rand(array(1,2,3), 2));
41 array_rand(): Argument #1 ($array) cannot be empty
42 array_rand(): Argument #1 ($array) cannot be empty
43 array_rand(): Argument #2 ($num) must be between 1 and the number of elements in argument #1 ($arra…
44 array_rand(): Argument #2 ($num) must be between 1 and the number of elements in argument #1 ($arra…
45 array_rand(): Argument #2 ($num) must be between 1 and the number of elements in argument #1 ($arra…