These php operators can be used to increment (++) a variable and divide it (%) by number, thus achieveing alternating code. Just remember to set your count variable to 0 outside of your loop before it starts: Used inside a loop, class names would be named .example-class0 and .example-class1 alternating. Increasing the “2″ number allows Full Article…
Viewing 1 item