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";
76 absolute offset - absolute length - cut from beginning
117 absolute offset - absolute length - cut from middle
158 absolute offset - absolute length - cut from end
199 absolute offset - absolute length - attempt to cut past end
240 absolute offset - absolute length - cut everything
281 absolute offset - absolute length - cut nothing
322 absolute offset - relative length - cut from beginning
363 absolute offset - relative length - cut from middle
404 absolute offset - relative length - attempt to cut form before beginning
445 absolute offset - relative length - cut nothing
486 relative offset - absolute length - cut from beginning
527 relative offset - absolute length - cut from middle
568 relative offset - absolute length - cut from end
609 relative offset - absolute length - attempt to cut past end
650 relative offset - absolute length - cut everything
691 relative offset - absolute length - cut nothing
732 relative offset - relative length - cut from beginning
773 relative offset - relative length - cut from middle
814 relative offset - relative length - cut nothing