Lines Matching refs:num_req
21 // with valid num_req values
22 echo"\n-- With default num_req value --\n";
23 var_dump( array_rand($input) ); // with default $num_req value
24 echo"\n-- With num_req = 1 --\n";
25 var_dump( array_rand($input, 1) ); // with valid $num_req value
27 // with invalid num_req value
28 echo"\n-- With num_req = 0 --\n";
30 var_dump( array_rand($input, 0) ); // with $num_req=0
35 echo"\n-- With num_req = -1 --\n";
37 var_dump( array_rand($input, -1) ); // with $num_req=-1
42 echo"\n-- With num_req = -2 --\n";
44 var_dump( array_rand($input, -2) ); // with $num_req=-2
49 echo"\n-- With num_req more than number of members in 'input' array --\n";
51 var_dump( array_rand($input, 13) ); // with $num_req=13
60 -- With default num_req value --
63 -- With num_req = 1 --
66 -- With num_req = 0 --
69 -- With num_req = -1 --
72 -- With num_req = -2 --
75 -- With num_req more than number of members in 'input' array --