$i % 2 ? 0:
| From: | BRACK | Date: | Sat, 25 Aug 2001 16:38:10 +0000 |
| Subject: | $i % 2 ? 0: | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-64442@lists.php.net to get a copy of this message | ||
Hi
Can someone explain to me what "$i % 2 ? 0:" means or what it
does step by step? I was looking in PHP docs for "?" and ":" and
didn't find it there. I use this line in my script to assign different
value for $bgcolor variable to color rows in result, but I want to
understand what does it mean.
Thank you in advance,
Youri
<>< <>< <>< <>< God is our provider ><> ><>
><> ><>
http://www.body-builders.org