Lines Matching refs:num_req
5 /* Prototype : mixed array_rand(array $input [, int $num_req])
27 // with valid num_req values
28 echo"\n-- With default num_req value --\n";
29 var_dump( array_rand($input) ); // with default $num_req value
30 echo"\n-- With num_req = 1 --\n";
31 var_dump( array_rand($input, 1) ); // with valid $num_req value
33 // with invalid num_req value
34 echo"\n-- With num_req = 0 --\n";
35 var_dump( array_rand($input, 0) ); // with $num_req=0
36 echo"\n-- With num_req = -1 --\n";
37 var_dump( array_rand($input, -1) ); // with $num_req=-1
38 echo"\n-- With num_req = -2 --\n";
39 var_dump( array_rand($input, -2) ); // with $num_req=-2
40 echo"\n-- With num_req more than number of members in 'input' array --\n";
41 var_dump( array_rand($input, 13) ); // with $num_req=13
49 -- With default num_req value --
52 -- With num_req = 1 --
55 -- With num_req = 0 --
60 -- With num_req = -1 --
65 -- With num_req = -2 --
70 -- With num_req more than number of members in 'input' array --