Alternate Rows in PHP

I found a really nice way to do alternate row colours in PHP:

http://stackoverflow.com/questions/399137/easiest-way-to-alternate-row-colors-in-php-html