Home
last modified time | relevance | path

Searched refs:start_key (Results 1 – 11 of 11) sorted by relevance

/PHP-7.3/ext/standard/tests/array/
H A Darray_fill_error.phpt5 /* Prototype : proto array array_fill(int start_key, int num, mixed val)
6 …* Description: Create an array containing num elements starting with index start_key each initiali…
19 $start_key = 0;
23 var_dump( array_fill($start_key,$num,$val, $extra_arg) );
27 $start_key = 0;
29 var_dump( array_fill($start_key,$num) );
33 var_dump( array_fill($start_key,$num,$val) );
H A Darray_fill_variation1_64bit.phpt2 Test array_fill() function : usage variations - unexpected values for 'start_key' argument
9 /* Prototype : proto array array_fill(int start_key, int num, mixed val)
10 …* Description: Create an array containing num elements starting with index start_key each initiali…
15 * testing array_fill() by passing different unexpected value for 'start_key' argument
42 //array of different values for 'start_key' argument
90 // loop through each element of the array for start_key
92 echo "--- Testing array_fill() with different values for 'start_key' arg ---\n";
97 $start_key = $values[$index];
99 var_dump( array_fill($start_key,$num,$val) );
111 --- Testing array_fill() with different values for 'start_key' arg ---
H A Darray_fill_variation4.phpt5 /* Prototype : proto array array_fill(int start_key, int num, mixed val)
6 …* Description: Create an array containing num elements starting with index start_key each initiali…
14 $start_key = 0;
39 var_dump( array_fill($start_key,$num,array_fill($start_key,$num,$val)) );
H A Darray_fill_variation1.phpt2 Test array_fill() function : usage variations - unexpected values for 'start_key' argument
9 /* Prototype : proto array array_fill(int start_key, int num, mixed val)
10 …* Description: Create an array containing num elements starting with index start_key each initiali…
15 * testing array_fill() by passing different unexpected value for 'start_key' argument
42 //array of different values for 'start_key' argument
90 // loop through each element of the array for start_key
92 echo "--- Testing array_fill() with different values for 'start_key' arg ---\n";
97 $start_key = $values[$index];
99 var_dump( array_fill($start_key,$num,$val) );
111 --- Testing array_fill() with different values for 'start_key' arg ---
H A Darray_fill_basic.phpt5 /* Prototype : proto array array_fill(int start_key, int num, mixed val)
6 …* Description: Create an array containing num elements starting with index start_key each initiali…
13 $start_key = 0 ;
38 var_dump( array_fill($start_key,$num,$val) );
H A Darray_fill_variation3.phpt5 /* Prototype : array array_fill(int $start_key, int $num, mixed $val)
6 …* Description: Create an array containing num elements starting with index start_key each initiali…
17 $start_key = 0;
59 var_dump( array_fill($start_key , $num , $val) );
H A Darray_fill_variation2.phpt5 /* Prototype : proto array array_fill(int start_key, int num, mixed val)
6 …* Description: Create an array containing num elements starting with index start_key each initiali…
17 $start_key = 0;
90 var_dump( array_fill($start_key,$num,$val) );
H A Darray_fill_variation5.phpt5 /* Prototype : array array_fill(int $start_key, int $num, mixed $val)
6 …* Description: Create an array containing num elements starting with index start_key each initiali…
17 $start_key = 0;
48 var_dump( array_fill($start_key , $num , $val) );
H A Darray_fill_object.phpt5 /* Prototype : array array_fill(int $start_key, int $num, mixed $val)
6 …* Description: Create an array containing num elements starting with index start_key each initiali…
17 $start_key = 0;
199 var_dump( array_fill($start_key,$num,$val) );
/PHP-7.3/ext/standard/
H A Darray.c2604 zend_long start_key, num; local
2607 Z_PARAM_LONG(start_key)
2616 } else if (UNEXPECTED(start_key > ZEND_LONG_MAX - num + 1)) {
2619 } else if (EXPECTED(start_key >= 0) && EXPECTED(start_key < num)) {
2624 array_init_size(return_value, (uint32_t)(start_key + num));
2626 Z_ARRVAL_P(return_value)->nNumUsed = (uint32_t)(start_key + num);
2628 Z_ARRVAL_P(return_value)->nNextFreeElement = (zend_long)(start_key + num);
2635 n = start_key;
2637 while (start_key--) {
2654 zend_hash_index_add_new(Z_ARRVAL_P(return_value), start_key, val);
[all …]
H A Dbasic_functions.c341 ZEND_ARG_INFO(0, start_key)

Completed in 45 milliseconds