Try $tableRowBGcolorBoolCounter = !$tableRowBGcolorBoolCounter Notice that it says '= !' instead of !='. -- Tony Marston http://www.tonymarston.net http://www.radicore.org "John Butler" <govinda.webdnatalk@xxxxxxxxx> wrote in message news:52842D6F-DD45-44A6-AE06-2E58EF8F6D8E@xxxxxxxxxxxx > quick Q: > I have this inside a foreach{} that I want to alternate between on and > off so I can alternate the background-color of my <tr>'s. > > $tableRowBGcolorBoolCounter != $tableRowBGcolorBoolCounter; //-boolean on > and off > > I am looking thru' docs and books, but can't remember (nor find now) in > PHP how to say "inverse your value" (to a boolean). > ? > > TIA! -G > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php