Home
last modified time | relevance | path

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

/PHP-7.3/ext/standard/tests/array/
H A Darray_splice_errors.phpt2 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 Dbug28974.phpt12 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 Darray_splice_basic.phpt2 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 Darray_splice_variation2.phpt2 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 Darray_splice_variation1.phpt2 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 Darray_splice_variation4.phpt2 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 Dbug31158.phpt2 Bug #31158 (array_splice on $GLOBALS crashes)
9 array_splice($GLOBALS,0,count($GLOBALS));
H A Darray_splice_variation3.phpt2 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.3/Zend/tests/
H A Dforeach_017.phpt2 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 Dbug67169.phpt2 Bug #67169: array_splice all elements, then []= gives wrong index
7 array_splice($array, 0, 2);
H A Dbug33257.phpt2 Bug #33257 (array_splice() inconsistent when passed function instead of variable)
15 array_splice(X::getArr(), 1, 1);
H A Dbug52193.phpt23 array_splice($items, 0 , 4, $func);
/PHP-7.3/ext/standard/
H A Dphp_array.h63 PHP_FUNCTION(array_splice);
H A Dbasic_functions.c3365 PHP_FE(array_splice, arginfo_array_splice)
H A Darray.c3407 PHP_FUNCTION(array_splice) argument
/PHP-7.3/ext/spl/internal/
H A Dspldoublylinkedlist.inc272 array_splice($this->_llist, $realOffset, 1);

Completed in 57 milliseconds