I have a PHP array with say 50 items in it. I then use array_slice to extract 12 items:
$extractItems = array_slice($rows,0,12);
I then use the $extractItems and this is fine.
The catch is I want to then write the remaining items (eg: $rows - $extractItems) to cache.
When I view $rows I can see array_slice doesn't remove the items. Just copies a section to a new array.
How would I best get a set of the items not 'array_sliced'?
thankyou :)