Possible Duplicate:
unset range of keys in an array
I have an array $test, it contains 1000s of element with random key between 1 and 10000,
I want to unset array elements of particular key range. eg i wanna unset elements if the key value between 500 and 600.
Now i am using foreach loop to do this. Any other php shortcut to do this?
Original link
unset range of keys in an array
You can try array_slice
then
or
array_splice