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

/PHP_TRUNK/ext/standard/
H A Darray.c4184 /* {{{ proto mixed array_rand(array input [, int num_req])
4189 zend_long randval, num_req = 1; local
4194 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a|l", &input, &num_req) == FAILURE) {
4201 if (num_req <= 0 || num_req > num_avail) {
4208 if (num_req > 1) {
4209 array_init_size(return_value, (uint32_t)num_req);
4214 if (!num_req) {
4220 if ((double) (randval / (PHP_RAND_MAX + 1.0)) < (double) num_req / (double) num_avail) {
4236 num_req
[all...]
H A Dbasic_functions.c562 ZEND_ARG_INFO(0, num_req)

Completed in 119 milliseconds