Lines Matching refs:length

12 function test_splice ($offset, $length)
16 var_dump (array_splice ($input_array,$offset,$length));
20 var_dump (array_splice ($input_array,$offset,$length,array ("A","B","C")));
24 echo "absolute offset - absolute length - cut from beginning\n";
26 echo "absolute offset - absolute length - cut from middle\n";
28 echo "absolute offset - absolute length - cut from end\n";
30 echo "absolute offset - absolute length - attempt to cut past end\n";
32 echo "absolute offset - absolute length - cut everything\n";
34 echo "absolute offset - absolute length - cut nothing\n";
37 echo "absolute offset - relative length - cut from beginning\n";
40 echo "absolute offset - relative length - cut from middle\n";
43 echo "absolute offset - relative length - attempt to cut form before beginning \n";
46 echo "absolute offset - relative length - cut nothing\n";
49 echo "relative offset - absolute length - cut from beginning\n";
52 echo "relative offset - absolute length - cut from middle\n";
54 echo "relative offset - absolute length - cut from end\n";
56 echo "relative offset - absolute length - attempt to cut past end\n";
58 echo "relative offset - absolute length - cut everything\n";
60 echo "relative offset - absolute length - cut nothing\n";
63 echo "relative offset - relative length - cut from beginning\n";
66 echo "relative offset - relative length - cut from middle\n";
69 echo "relative offset - relative length - cut nothing\n";
75 absolute offset - absolute length - cut from beginning
116 absolute offset - absolute length - cut from middle
157 absolute offset - absolute length - cut from end
198 absolute offset - absolute length - attempt to cut past end
239 absolute offset - absolute length - cut everything
280 absolute offset - absolute length - cut nothing
321 absolute offset - relative length - cut from beginning
362 absolute offset - relative length - cut from middle
403 absolute offset - relative length - attempt to cut form before beginning
444 absolute offset - relative length - cut nothing
485 relative offset - absolute length - cut from beginning
526 relative offset - absolute length - cut from middle
567 relative offset - absolute length - cut from end
608 relative offset - absolute length - attempt to cut past end
649 relative offset - absolute length - cut everything
690 relative offset - absolute length - cut nothing
731 relative offset - relative length - cut from beginning
772 relative offset - relative length - cut from middle
813 relative offset - relative length - cut nothing