Is looping like this possible?
Let’s say I have an array containing days of the week. I need to display the days in groups of three (as the CSS is not the same for every element, I can’t simply foreach the array, one element at a time). The number of elements in the array will be unknown and almost certainly not a multiple of three.
I need output like:
on iteration 1, I need
I’m thinking a For loop with Step 3 then using i, i+1 and i+2 each time but For requires a specified number of elements/iterations…