Home
last modified time | relevance | path

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

/PHP-7.4/ext/standard/tests/array/
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_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.4/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 Darray_splice_empty_ht_iter_removal.phpt2 HT iterator should be destroyed if array becomes empty during array_splice
9 $a = array_splice($a, 0);
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.4/ext/standard/
H A Dphp_array.h63 PHP_FUNCTION(array_splice);
H A Dbasic_functions.c3360 PHP_FE(array_splice, arginfo_array_splice)
H A Darray.c3439 PHP_FUNCTION(array_splice) argument
/PHP-7.4/sapi/fpm/tests/
H A Dlogtool.inc306 return $this->expectStartingLines(array_splice($lines, $i));

Completed in 51 milliseconds