Home
last modified time | relevance | path

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

/PHP-8.2/ext/standard/tests/array/
H A Darray_slice_variation7.phpt100 $preserve_keys = TRUE
111 $preserve_keys = FALSE
124 $preserve_keys = TRUE
136 $preserve_keys = TRUE
148 $preserve_keys = TRUE
164 $preserve_keys = TRUE
180 $preserve_keys = TRUE
192 $preserve_keys = TRUE
204 $preserve_keys = TRUE
224 $preserve_keys = TRUE
[all …]
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_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_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_reverse_variation4.phpt61 // with $preserve_keys argument
64 echo "- \$preserve_keys = false -\n";
87 - $preserve_keys = false -
101 - $preserve_keys = false -
117 - $preserve_keys = false -
145 - $preserve_keys = false -
181 - $preserve_keys = false -
218 - $preserve_keys = false -
245 - $preserve_keys = false -
267 - $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.2/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.2/ext/spl/
H A Dphp_spl.stub.php53 function iterator_to_array(iterable $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.2/ext/standard/
H A Darray.c3566 Z_PARAM_BOOL(preserve_keys)
3607 if (!preserve_keys
3639 if (preserve_keys) {
3667 if (preserve_keys) {
4334 bool preserve_keys = 0; /* whether to preserve keys */ local
4339 Z_PARAM_BOOL(preserve_keys)
4344 if (HT_IS_PACKED(Z_ARRVAL_P(input)) && !preserve_keys) {
4361 if (preserve_keys) {
6418 bool preserve_keys = 0; local
6427 Z_PARAM_BOOL(preserve_keys)
[all …]
H A Dbasic_functions.stub.php1002 function array_slice(array $array, int $offset, ?int $length = null, bool $preserve_keys = false): … argument
1058 function array_reverse(array $array, bool $preserve_keys = false): array {} argument
1199 function array_chunk(array $array, int $length, bool $preserve_keys = false): array {} argument
H A Dbasic_functions_arginfo.h215 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, preserve_keys, _IS_BOOL, 0, "false")
257 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, preserve_keys, _IS_BOOL, 0, "false")
360 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, preserve_keys, _IS_BOOL, 0, "false")

Completed in 44 milliseconds