Skip to content

Instantly share code, notes, and snippets.

@jpfinley
Created January 13, 2010 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpfinley/276301 to your computer and use it in GitHub Desktop.
Save jpfinley/276301 to your computer and use it in GitHub Desktop.
<?php foreach ($katies_items as $i=>$item) { ?>
<li<?php echo ($i % 2 == 0) ? " class='special'" : "" ?>>
.. stuff goes here
</li>
<?php } ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment