I am trying to set a variable based on some math logic (for wrapping a specific html around elements).
I made half the problem to press 0, 3, 6, 9, 12
if(($i % 3) == 0) {
Now I need to press the following numbers: 2, 5, 8, 11, 14, etc.
What possible math work can I do to get into this sequence?
math php
user137621
source share