I have an array, lets say that the keys are: 100, 512, 610, 21, 176, 64. I can always sort the array if needed.
I want to get rid of the array values that have a key below a certain value, say below 110. That would get rid of 100, 21, and 64.
I would like to do this WITHOUT using a foreach. Is there a function that I can use, where I can maybe sort the array, find the splice point, and from there delete that chanck all in one swoop?
Thanks!
A loop is seriously the most straight forward way to do it. For the fun of it though, here’s a solution without (visible) loop:
Maybe you should use a loop instead.