I have an array:
$arr = ['a', 'b', 'c', 'd', 'e', 'f', 'g'];
Is there a way to make it contain elements only divisible by 3 (or n)? So in the above example g
would be removed as it's left over from a division of 3?
EDIT
I want amount of elements divisible by 3.