Lines Matching refs:length
6 * proto array array_splice(array input, int offset [, int length [, array replacement]])
13 function test_splice ($offset, $length)
17 var_dump (array_splice ($input_array,$offset,$length));
21 var_dump (array_splice ($input_array,$offset,$length,array ("A","B","C")));
25 echo "absolute offset - absolute length - cut from beginning\n";
27 echo "absolute offset - absolute length - cut from middle\n";
29 echo "absolute offset - absolute length - cut from end\n";
31 echo "absolute offset - absolute length - attempt to cut past end\n";
33 echo "absolute offset - absolute length - cut everything\n";
35 echo "absolute offset - absolute length - cut nothing\n";
38 echo "absolute offset - relative length - cut from beginning\n";
41 echo "absolute offset - relative length - cut from middle\n";
44 echo "absolute offset - relative length - attempt to cut form before beginning \n";
47 echo "absolute offset - relative length - cut nothing\n";
50 echo "relative offset - absolute length - cut from beginning\n";
53 echo "relative offset - absolute length - cut from middle\n";
55 echo "relative offset - absolute length - cut from end\n";
57 echo "relative offset - absolute length - attempt to cut past end\n";
59 echo "relative offset - absolute length - cut everything\n";
61 echo "relative offset - absolute length - cut nothing\n";
64 echo "relative offset - relative length - cut from beginning\n";
67 echo "relative offset - relative length - cut from middle\n";
70 echo "relative offset - relative length - cut nothing\n";
77 absolute offset - absolute length - cut from beginning
118 absolute offset - absolute length - cut from middle
159 absolute offset - absolute length - cut from end
200 absolute offset - absolute length - attempt to cut past end
241 absolute offset - absolute length - cut everything
282 absolute offset - absolute length - cut nothing
323 absolute offset - relative length - cut from beginning
364 absolute offset - relative length - cut from middle
405 absolute offset - relative length - attempt to cut form before beginning
446 absolute offset - relative length - cut nothing
487 relative offset - absolute length - cut from beginning
528 relative offset - absolute length - cut from middle
569 relative offset - absolute length - cut from end
610 relative offset - absolute length - attempt to cut past end
651 relative offset - absolute length - cut everything
692 relative offset - absolute length - cut nothing
733 relative offset - relative length - cut from beginning
774 relative offset - relative length - cut from middle
815 relative offset - relative length - cut nothing