here's my own primitive function. It's not as good as the one of PHP4 but for what I'm using it should work fine:
function php3_array_slice($array,$offset,$length) {
$length = abs($length);
if ($length == 0) $high = count($array);
else $high = $offset+$length;
for($i = $offset; $i < $high; $i++) $new_array[$i-$offset] = $array[$i];
return $new_array;
}
If $length is set to 0, it'll return everything from offset up until the end of the array.
do you know any faster way to do it?
Philippo