Lines Matching refs:offset
2 Test array_slice() function : usage variations - Pass different integers as $offset argument
5 /* Prototype : array array_slice(array $input, int $offset [, int $length [, bool $preserve_keys]])
6 * Description: Returns elements specified by offset and length
11 * Pass different integers as $offset argument to test how array_slice() behaves
19 echo "\n-- \$offset is $i --\n";
22 echo "\n-- \$offset is maximum integer value --\n";
25 echo "\n-- \$offset is minimum integer value --\n";
34 -- $offset is -7 --
48 -- $offset is -6 --
62 -- $offset is -5 --
76 -- $offset is -4 --
88 -- $offset is -3 --
98 -- $offset is -2 --
106 -- $offset is -1 --
112 -- $offset is 0 --
126 -- $offset is 1 --
138 -- $offset is 2 --
148 -- $offset is 3 --
156 -- $offset is 4 --
162 -- $offset is 5 --
166 -- $offset is 6 --
170 -- $offset is 7 --
174 -- $offset is maximum integer value --
178 -- $offset is minimum integer value --