Yes, the first statement works. What it does is this:
PHP Code:
g_votes[0] = g_votes[1] = g_votes[2] = 0;
- Step 1 -
PHP Code:
g_votes[2] = 0 // let's call this statement "VOTES_2"
- Step 2 -
PHP Code:
g_votes[1] = VOTES_2 // let's call this statement "VOTES_1"
- Step 3 -
PHP Code:
g_votes[0] = VOTES_1
At each step, the previous statement evaluates to whatever you're assigning to.
__________________