Searched refs:preserve_keys (Results 1 – 16 of 16) sorted by relevance
/PHP-8.4/ext/standard/tests/array/ |
H A D | array_slice_variation7.phpt | 100 $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 D | array_reverse_variation3.phpt | 96 - 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 D | array_slice_variation9.phpt | 17 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 D | array_reverse_variation5.phpt | 90 - $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 D | array_reverse_variation4.phpt | 61 // 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 D | array_slice_basic.phpt | 15 $preserve_keys = true; 19 var_dump( array_slice($input, $offset, $length, $preserve_keys) );
|
H A D | array_chunk_basic1.phpt | 2 Test array_chunk() function : basic functionality - default 'preserve_keys'
|
H A D | array_chunk_basic2.phpt | 2 Test array_chunk() function : basic functionality - 'preserve_keys' as true/false
|
H A D | array_reverse_variation6.phpt | 30 // with $preserve_keys argument
|
/PHP-8.4/Zend/tests/named_params/ |
H A D | internal.phpt | 9 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 D | call_user_func.phpt | 48 var_dump(call_user_func('array_slice', [1, 2, 3, 4, 'x' => 5], 3, preserve_keys: true));
|
/PHP-8.4/ext/spl/ |
H A D | php_spl.stub.php | 53 function iterator_to_array(iterable $iterator, bool $preserve_keys = true): array {} argument
|
H A D | php_spl_arginfo.h | 61 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, preserve_keys, _IS_BOOL, 0, "true")
|
/PHP-8.4/ext/standard/ |
H A D | array.c | 3901 bool preserve_keys = 0; /* Whether to preserve keys while copying to the new array */ local 3911 Z_PARAM_BOOL(preserve_keys) 3952 if (!preserve_keys 4008 if (preserve_keys) { 4702 bool preserve_keys = 0; /* whether to preserve keys */ local 4707 Z_PARAM_BOOL(preserve_keys) 4712 if (HT_IS_PACKED(Z_ARRVAL_P(input)) && !preserve_keys) { 4729 if (preserve_keys) { 6973 bool preserve_keys = 0; local 6982 Z_PARAM_BOOL(preserve_keys) [all …]
|
H A D | basic_functions.stub.php | 1675 function array_slice(array $array, int $offset, ?int $length = null, bool $preserve_keys = false): … argument 1738 function array_reverse(array $array, bool $preserve_keys = false): array {} argument 1905 function array_chunk(array $array, int $length, bool $preserve_keys = false): array {} argument
|
H A D | basic_functions_arginfo.h | 210 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") 369 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, preserve_keys, _IS_BOOL, 0, "false")
|
Completed in 50 milliseconds