Home
last modified time | relevance | path

Searched refs:preserve_keys (Results 1 – 16 of 16) sorted by relevance

/PHP-8.0/ext/standard/tests/array/
H A Darray_slice_variation7.phpt112 $preserve_keys = TRUE
123 $preserve_keys = FALSE
136 $preserve_keys = TRUE
156 $preserve_keys = TRUE
172 $preserve_keys = TRUE
184 $preserve_keys = TRUE
196 $preserve_keys = TRUE
212 $preserve_keys = TRUE
228 $preserve_keys = TRUE
240 $preserve_keys = TRUE
[all …]
H A Darray_slice_variation9.phpt17 echo "\n-- Array of referenced variables (\$preserve_keys = default) --\n";
21 echo "-- Change \$val2 (\$preserve_keys = TRUE) --\n";
30 -- Array of referenced variables ($preserve_keys = default) --
37 -- Change $val2 ($preserve_keys = TRUE) --
H A Darray_reverse_variation3.phpt96 - with $preserve_keys = false -
118 - with $preserve_keys = false -
152 - with $preserve_keys = false -
180 - with $preserve_keys = false -
194 - with $preserve_keys = false -
208 - with $preserve_keys = false -
244 - with $preserve_keys = false -
278 - with $preserve_keys = false -
306 - with $preserve_keys = false -
338 - with $preserve_keys = false -
[all …]
H A Darray_reverse_variation4.phpt91 - $preserve_keys = false -
105 - $preserve_keys = false -
121 - $preserve_keys = false -
149 - $preserve_keys = false -
171 - $preserve_keys = false -
199 - $preserve_keys = false -
235 - $preserve_keys = false -
272 - $preserve_keys = false -
299 - $preserve_keys = false -
321 - $preserve_keys = false -
[all …]
H A Darray_reverse_variation5.phpt90 - $preserve_keys = false -
104 - $preserve_keys = false -
120 - $preserve_keys = false -
148 - $preserve_keys = false -
170 - $preserve_keys = false -
198 - $preserve_keys = false -
234 - $preserve_keys = false -
269 - $preserve_keys = false -
295 - $preserve_keys = false -
323 - $preserve_keys = false -
[all …]
H A Darray_slice_basic.phpt15 $preserve_keys = true;
19 var_dump( array_slice($input, $offset, $length, $preserve_keys) );
H A Darray_chunk_basic1.phpt2 Test array_chunk() function : basic functionality - default 'preserve_keys'
H A Darray_chunk_basic2.phpt2 Test array_chunk() function : basic functionality - 'preserve_keys' as true/false
H A Darray_reverse_variation6.phpt30 // with $preserve_keys argument
/PHP-8.0/Zend/tests/named_params/
H A Dinternal.phpt9 var_dump(array_slice(array: ['a' => 0, 'b' => 1], offset: 1, preserve_keys: true));
10 var_dump(array_slice(['a' => 0, 'b' => 1], preserve_keys: true, offset: 1));
H A Dcall_user_func.phpt48 var_dump(call_user_func('array_slice', [1, 2, 3, 4, 'x' => 5], 3, preserve_keys: true));
/PHP-8.0/ext/spl/
H A Dphp_spl.stub.php36 function iterator_to_array(Traversable $iterator, bool $preserve_keys = true): array {} argument
H A Dphp_spl_arginfo.h61 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, preserve_keys, _IS_BOOL, 0, "true")
/PHP-8.0/ext/standard/
H A Darray.c3482 zend_bool preserve_keys = 0; /* Whether to preserve keys while copying to the new array */ local
3492 Z_PARAM_BOOL(preserve_keys)
3532 (!preserve_keys ||
3570 if (preserve_keys) {
4238 zend_bool preserve_keys = 0; /* whether to preserve keys */ local
4243 Z_PARAM_BOOL(preserve_keys)
4248 if ((HT_FLAGS(Z_ARRVAL_P(input)) & HASH_FLAG_PACKED) && !preserve_keys) {
4265 if (preserve_keys) {
6186 zend_bool preserve_keys = 0; local
6195 Z_PARAM_BOOL(preserve_keys)
[all …]
H A Dbasic_functions.stub.php144 function array_slice(array $array, int $offset, ?int $length = null, bool $preserve_keys = false): … argument
166 function array_reverse(array $array, bool $preserve_keys = false): array {} argument
247 function array_chunk(array $array, int $length, bool $preserve_keys = false): array {} argument
H A Dbasic_functions_arginfo.h210 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, preserve_keys, _IS_BOOL, 0, "false")
252 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, preserve_keys, _IS_BOOL, 0, "false")
355 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, preserve_keys, _IS_BOOL, 0, "false")

Completed in 51 milliseconds