How can I filter array entries with an odd or even index number?
Array ( [0] => string1 [1] => string2 [2] => string3 [3] => string4 )
Like, I want to remove entries from [0] and [2] from an array. Or to say that I have 0,1,2,3,4,5,6,7,8,9 - I will need to remove 0,2,4,6,8.
arrays php
Sindre sorhus
source share