Home
last modified time | relevance | path

Searched refs:num_req (Results 1 – 11 of 11) sorted by relevance

/PHP-7.2/ext/standard/tests/array/
H A Darray_rand_variation5.phpt27 // with valid num_req values
30 echo"\n-- With num_req = 1 --\n";
33 // with invalid num_req value
34 echo"\n-- With num_req = 0 --\n";
36 echo"\n-- With num_req = -1 --\n";
38 echo"\n-- With num_req = -2 --\n";
49 -- With default num_req value --
52 -- With num_req = 1 --
55 -- With num_req = 0 --
60 -- With num_req = -1 --
[all …]
H A Darray_rand_variation4.phpt77 With num_req = 1
80 With num_req = 2
93 With num_req = 1
96 With num_req = 2
109 With num_req = 1
112 With num_req = 2
125 With num_req = 1
128 With num_req = 2
141 With num_req = 1
144 With num_req = 2
[all …]
H A Darray_rand_variation6.phpt5 /* Prototype : mixed array_rand(array $input [, int $num_req])
57 echo "\n-- with num_req = 1 --\n";
60 echo "\n-- with num_req = 3 --\n";
63 echo "\n-- with num_req = 6 --\n";
75 -- with num_req = 1 --
78 -- with num_req = 3 --
88 -- with num_req = 6 --
H A Darray_rand_basic1.phpt5 /* Prototype : mixed array_rand(array $input [, int $num_req])
17 // Initialise the 'input' and 'num_req' variables
19 $num_req = 6;
23 var_dump( array_rand($input,$num_req) );
H A Darray_rand_basic2.phpt5 /* Prototype : mixed array_rand(array $input [, int $num_req])
17 // Initialise the 'input' and 'num_req' variables
24 $num_req = 6;
28 var_dump( array_rand($input,$num_req) );
H A Darray_rand_error.phpt5 /* Prototype : mixed array_rand(array input [, int num_req])
19 $num_req = 10;
21 var_dump( array_rand($input,$num_req, $extra_arg) );
H A Darray_rand_variation3.phpt5 /* Prototype : mixed array_rand(array $input [, int $num_req])
42 // initialise 'num_req' variable
43 $num_req = 3;
46 var_dump( array_rand($input, $num_req) );
H A Darray_rand_variation2.phpt2 Test array_rand() function : usage variations - unexpected values for 'num_req' parameter
7 /* Prototype : mixed array_rand(array input [, int num_req])
13 * Test array_rand() with different types of values other than int passed to 'num_req' argument
17 echo "*** Testing array_rand() : unexpected values for 'num_req' parameter ***\n";
81 // loop through each element of the array for different values for 'num_req' argument
92 *** Testing array_rand() : unexpected values for 'num_req' parameter ***
H A Darray_rand_variation1.phpt5 /* Prototype : mixed array_rand(array input [, int num_req])
18 $num_req = 10;
90 var_dump( array_rand($value,$num_req) );
/PHP-7.2/ext/standard/
H A Darray.c5739 zend_long num_req = 1; local
5752 Z_PARAM_LONG(num_req)
5762 if (num_req == 1) {
5798 if (num_req <= 0 || num_req > num_avail) {
5804 array_init_size(return_value, (uint32_t)num_req);
5805 if (num_req > (num_avail >> 1)) {
5807 num_req = num_avail - num_req;
5814 i = num_req;
H A Dbasic_functions.c560 ZEND_ARG_INFO(0, num_req)

Completed in 59 milliseconds