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 11 to 12 of 12 items
PHP Echo with html, escapes and variables included
This is a good example of a php echo used to output some html which makes use of some variables – some escapes were also required for the html.