September 30, 2010 in PHP, Tutorials by admin

Have you ever had a online store, photo gallery, large list etc. that you wanted an easy way to tell php to start a new row of entries. For example you have 20 photos but only want 4 photos per line?
There is a really easy way to do this using the php modulus (%) operator.