bitwise operators
Posted: Wed May 28, 2003 1:00 pm
Hi!
I'm just beginning to work in php, and i have a question about a few lines of code:
$bgcolor = ($i++ & 1) ? $bgcolor1 : $bgcolor2;
echo '<tr>';
echo '<td bgcolor=”' . $bgcolor . '">'
Can someone briefly explain me how bitwise part of the expression in the tenary operator works? Thank for any help or hints.
I'm just beginning to work in php, and i have a question about a few lines of code:
$bgcolor = ($i++ & 1) ? $bgcolor1 : $bgcolor2;
echo '<tr>';
echo '<td bgcolor=”' . $bgcolor . '">'
Can someone briefly explain me how bitwise part of the expression in the tenary operator works? Thank for any help or hints.