Hi i want to delete every nth element of an array iteratively. For example if I have an array like this
$input = array (1, 2, 3, 4, 5, 6, 7, 8);
and say I need to remove every 4th element. In the first iteration 5 will be removed, then 1, then 6, then 3 then 2, then 4, then 8
The number 7 will be left in the array, I want to return that !
Thanks for your help