Searched refs:num_req (Results 1 - 2 of 2) sorted by relevance

/PHP_TRUNK/ext/standard/
H A Darray.c4139 /* {{{ proto mixed array_rand(array input [, int num_req])
4144 php_int_t randval, num_req = 1; local
4149 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a|i", &input, &num_req) == FAILURE) {
4156 if (num_req <= 0 || num_req > num_avail) {
4163 if (num_req > 1) {
4164 array_init_size(return_value, num_req);
4169 if (!num_req) {
4175 if ((double) (randval / (PHP_RAND_MAX + 1.0)) < (double) num_req / (double) num_avail) {
4191 num_req
[all...]
H A Dbasic_functions.c562 ZEND_ARG_INFO(0, num_req)

Completed in 15 milliseconds