Re: Alternate Colors in Rows ($r=!$r)
| From: | Jeff Cohan | Date: | Fri, 05 Oct 2007 19:00:00 +0000 |
| Subject: | Re: Alternate Colors in Rows ($r=!$r) | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-262830@lists.php.net to get a copy of this message | ||
Daevid Vincent wrote:
> <TR class=<?php echo ($r = !$r) ? "dataRow1" : "dataRow2"; ?> >
I love the simplicity, and very cool.
But why does the ($r=!$r) ternary condition work?. (I understand
that it DOES but not WHY.)
TIA,
Jeff