PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
lol, I thought this whole thing would revolve around the %. But that still leaves me where I started. Before I posted this I researched that operator and was lost about how that applies to Smarty. In short, I'm still completely lost.
Alright so, It's been a few days, I've looked into modulus a little more (Got sidetracked and implemented pagination) and i'm still lost about this. Any help? Anyone?
The modulus operator returns the remainder when you divide two integers. Ex. 5 % 3 = 2, 4 % 2 = 0. What this means is that you guarantee the result of $int % $divisor to be an integer from 0 to $divisor - 1. When it equals zero, you can use it to initialize a new row.