Alternating Rows (Wordpress version)


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.