Re: how to say "inverse your value" (to a boolean)?
| From: | tedd | Date: | Tue, 11 Aug 2009 20:00:18 +0000 |
| Subject: | Re: how to say "inverse your value" (to a boolean)? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-296665@lists.php.net to get a copy of this message | ||
At 1:53 PM -0600 8/11/09, John Butler wrote:
What a lot of good ideas spawned from the OP! I am learning many things,.. while also actually working (paying bills), so I regularly have to just go with what I know well. Anyway, I already have the forearch { loop (for other reasons it is necessary), and I only needed one color to alternate with the default white.. so I used this: forearch { ... $tableRowBGcolorBoolCounter = !$tableRowBGcolorBoolCounter; //-boolean on and off (which then sticks in one CSS class or another for that <tr>. thanks for everyone's feedback. -JohnYeah, but forearch ain't going to work. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com