Archive for April, 2008

Odds or Even in PHP

This is a quick and dirty method to get the infamous “Zebra Strips” on tables by assigning alternating classes.

For this example we’ll use the fmod() function in PHP…