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

/PHP_TRUNK/ext/standard/
H A Darray.c3864 /* {{{ proto mixed array_rand(array input [, int num_req])
3869 long randval, num_req = 1; local
3876 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a|l", &input, &num_req) == FAILURE) {
3883 if (num_req <= 0 || num_req > num_avail) {
3890 if (num_req > 1) {
3891 array_init_size(return_value, num_req);
3896 while (num_req && (key_type = zend_hash_get_current_key_ex(Z_ARRVAL_P(input), &string_key, &string_key_len, &num_key, 0, &pos)) != HASH_KEY_NON_EXISTENT) {
3900 if ((double) (randval / (PHP_RAND_MAX + 1.0)) < (double) num_req / (double) num_avail) {
3916 num_req
[all...]
H A Dbasic_functions.c562 ZEND_ARG_INFO(0, num_req)

Completed in 25 milliseconds