My apologies if this is a stupid question, but for some reason, I simply can't seem to come up with a fairly simple way to do this. I know it should be simple, but my brain doesn't seem to want to come up with a simple solution. The situation: I have a fairly large array (a few hundred items). I need to remove a number of elements from it (key numbers are probably contained in another array, gotten by exploding a string from a cookie). The result needs to be the large array, with sequential key numbers, minus the elements the keys of which were in the other array. Any thoughts?
As a common practice, if you remove an item/items make sure to check if that key exists, otherwise PHP throws WARNING that key does not exists.