Posted By

Tate on 02/11/08


Tagged


Versions (?)

Alternating Rows (Wordpress version)


 / Published in: PHP
 

  1. for($i=0;$i<10;$i++)
  2. {
  3. if($i % 2)
  4. {
  5. // I'm in an even row
  6. }else{
  7. // I'm in an odd row
  8. }
  9. }

Report this snippet  

You need to login to post a comment.