Searched refs:array_splice (Results 1 – 14 of 14) sorted by relevance
/PHP-8.2/ext/standard/tests/array/ |
H A D | bug28974.phpt | 12 echo 'print_r(array_splice($a,2,1));'."\n"; 13 print_r(array_splice($a,2,1)); 16 echo 'print_r(array_splice($b,2,2147483645));'."\n"; 17 print_r(array_splice($b,2,2147483645)); 22 echo 'print_r(array_splice($c,2,2147483646));'."\n"; 23 print_r(array_splice($c,2,2147483646)); 51 print_r(array_splice($a,2,1)); 64 print_r(array_splice($b,2,2147483645)); 77 print_r(array_splice($c,2,2147483646));
|
H A D | array_splice_basic.phpt | 2 Test array_splice(): basic functionality 9 echo "*** Testing array_splice() basic operations ***\n"; 12 var_dump (array_splice($input, 2)); 18 var_dump (array_splice($input, 2, null)); 24 var_dump (array_splice($input, 1, -1)); 30 var_dump (array_splice($input, 1, count($input), "orange")); 35 var_dump (array_splice($input, -1, 1, array("black", "maroon"))); 42 var_dump (array_splice($input, 3, 0, "purple")); 50 *** Testing array_splice() basic operations ***
|
H A D | bug31158.phpt | 2 Bug #31158 (array_splice on $GLOBALS crashes) 9 array_splice($GLOBALS,0,count($GLOBALS)); 17 Fatal error: Uncaught Error: array_splice(): Argument #1 ($array) cannot be passed by reference in …
|
H A D | array_splice_variation1.phpt | 2 Test array_splice() function : usage variations - references 14 var_dump (array_splice ($input_array[0],1,1)); 25 var_dump (array_splice ($input_array,4,3)); 34 array_splice ($input_array,-1,1,$b); 43 array_splice ($input_array,-1,1,$b);
|
H A D | array_splice_variation4.phpt | 2 Test array_splice() function : usage variations - non array replacement values 12 var_dump (array_splice ($input_array,2,0,$replacement));
|
H A D | array_splice_variation3.phpt | 2 Test array_splice() function : usage variations - lengths and offsets 9 echo "*** array_splice() function : usage variations - lengths and offsets\n"; 16 var_dump (array_splice ($input_array,$offset,$length)); 20 var_dump (array_splice ($input_array,$offset,$length,array ("A","B","C"))); 74 *** array_splice() function : usage variations - lengths and offsets
|
/PHP-8.2/Zend/tests/ |
H A D | foreach_017.phpt | 2 array_splice() function precerve foreach by reference iterator pointer 12 array_splice($a, 1, 2); 24 array_splice($a, 2, 2); 36 array_splice($a, 1, 3); 50 array_splice($a, 1, 2, $replacement); 62 array_splice($a, 2, 2, $replacement); 74 array_splice($a, 1, 3, $replacement);
|
H A D | array_splice_empty_ht_iter_removal.phpt | 2 HT iterator should be destroyed if array becomes empty during array_splice 9 $a = array_splice($a, 0);
|
H A D | bug67169.phpt | 2 Bug #67169: array_splice all elements, then []= gives wrong index 7 array_splice($array, 0, 2);
|
H A D | bug33257.phpt | 2 Bug #33257 (array_splice() inconsistent when passed function instead of variable) 15 array_splice(X::getArr(), 1, 1);
|
H A D | bug52193.phpt | 23 array_splice($items, 0 , 4, $func);
|
/PHP-8.2/ext/standard/ |
H A D | basic_functions.stub.php | 1000 function array_splice(array &$array, int $offset, ?int $length = null, mixed $replacement = []): ar… function
|
H A D | basic_functions_arginfo.h | 2260 ZEND_FUNCTION(array_splice); 2883 ZEND_FE(array_splice, arginfo_array_splice)
|
H A D | array.c | 3433 PHP_FUNCTION(array_splice) argument
|
Completed in 42 milliseconds