I have an array with keys from 0 to n, and i need to exclude the following pattern of keys with continue when the array is iterated:
3,4,8,9,13,14,18,19…
The problem is that i need some kind of formula so that the pattern is not limited only to the numbers above.
1 Answer