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

/PHP_TRUNK/ext/standard/
H A Darray.c4552 /* {{{ proto mixed array_rand(array input [, int num_req])
4557 zend_long randval, num_req = 1; local
4562 if (zend_parse_parameters(ZEND_NUM_ARGS(), "a|l", &input, &num_req) == FAILURE) {
4569 if (num_req <= 0 || num_req > num_avail) {
4576 if (num_req > 1) {
4577 array_init_size(return_value, (uint32_t)num_req);
4582 if (!num_req) {
4588 if ((double) (randval / (PHP_RAND_MAX + 1.0)) < (double) num_req / (double) num_avail) {
4604 num_req
[all...]

Completed in 11 milliseconds