Skip to content

Instantly share code, notes, and snippets.

@danalmeida
Last active December 18, 2015 01:09
Show Gist options
  • Save danalmeida/5701871 to your computer and use it in GitHub Desktop.
Save danalmeida/5701871 to your computer and use it in GitHub Desktop.
Alternate between two class names in a PHP loop
<?php echo (++$count%2 ? "alpha" : "omega"); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment