/PHP-7.2/ext/standard/tests/array/ |
H A D | array_splice_errors.phpt | 2 Test array_splice() function : error conditions 10 echo "\n*** Testing error conditions of array_splice() ***\n"; 14 var_dump (array_splice()); 15 var_dump (array_splice($int)); 16 var_dump (array_splice($array)); 17 var_dump (array_splice($int,$int)); 19 var_dump (array_splice($obj,0,1)); 24 *** Testing error conditions of array_splice() *** 26 Warning: array_splice() expects at least 2 parameters, 0 given in %s on line %d 29 Warning: array_splice() expects at least 2 parameters, 1 given in %s on line %d [all …]
|
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 6 * proto array array_splice(array input, int offset [, int length [, array replacement]]) 10 echo "*** Testing array_splice() basic operations ***\n"; 13 var_dump (array_splice($input, 2)); 19 var_dump (array_splice($input, 1, -1)); 25 var_dump (array_splice($input, 1, count($input), "orange")); 30 var_dump (array_splice($input, -1, 1, array("black", "maroon"))); 37 var_dump (array_splice($input, 3, 0, "purple")); 45 *** Testing array_splice() basic operations ***
|
H A D | array_splice_variation2.phpt | 2 Test array_splice() function : usage variations - additional parameters 6 * proto array array_splice(array input, int offset [, int length [, array replacement]]) 11 var_dump (array_splice($array,1,1,3,4,5,6,7,8,9)); 16 Warning: array_splice() expects at most 4 parameters, 10 given in %s on line %d
|
H A D | array_splice_variation1.phpt | 2 Test array_splice() function : usage variations - references 6 * proto array array_splice(array input, int offset [, int length [, array replacement]]) 15 var_dump (array_splice ($input_array[0],1,1)); 26 var_dump (array_splice ($input_array,4,3)); 35 array_splice ($input_array,-1,1,$b); 44 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 6 * proto array array_splice(array input, int offset [, int length [, array replacement]]) 13 var_dump (array_splice ($input_array,2,0,$replacement));
|
H A D | bug31158.phpt | 2 Bug #31158 (array_splice on $GLOBALS crashes) 9 array_splice($GLOBALS,0,count($GLOBALS));
|
H A D | array_splice_variation3.phpt | 2 Test array_splice() function : usage variations - lengths and offsets 6 * proto array array_splice(array input, int offset [, int length [, array replacement]]) 10 echo "*** array_splice() function : usage variations - lengths and offsets\n"; 17 var_dump (array_splice ($input_array,$offset,$length)); 21 var_dump (array_splice ($input_array,$offset,$length,array ("A","B","C"))); 75 *** array_splice() function : usage variations - lengths and offsets
|
/PHP-7.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 | 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-7.2/ext/standard/ |
H A D | php_array.h | 65 PHP_FUNCTION(array_splice);
|
H A D | basic_functions.c | 3338 PHP_FE(array_splice, arginfo_array_splice)
|
H A D | array.c | 3463 PHP_FUNCTION(array_splice) argument
|
/PHP-7.2/ext/spl/internal/ |
H A D | spldoublylinkedlist.inc | 272 array_splice($this->_llist, $realOffset, 1);
|