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

/PHP_TRUNK/ext/standard/
H A Dbasic_functions.c562 ZEND_ARG_INFO(0, num_req)
H A Darray.c4185 /* {{{ proto mixed array_rand(array input [, int num_req])
4190 zend_long randval, num_req = 1; local
4195 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a|l", &input, &num_req) == FAILURE) {
4202 if (num_req <= 0 || num_req > num_avail) {
4209 if (num_req > 1) {
4210 array_init_size(return_value, (uint32_t)num_req);
4215 if (!num_req) {
4221 if ((double) (randval / (PHP_RAND_MAX + 1.0)) < (double) num_req / (double) num_avail) {
4237 num_req
[all...]

Completed in 16 milliseconds