in reply to Removing specific array elements

"I need to remove elements 30 through 38"

splice
Removes the elements designated by OFFSET and LENGTH from an array, an +d replaces them with the elements of LIST, if any.

update: cite docs
The way forward always starts with a minimal test.