Posted by Vince Morgan on 04/10/07 12:49
"Steve" <no.one@example.com> wrote in message
news:WIDSh.101$Xq6.16@newsfe12.lga...
> no...i think the operation as a whole is considered before the = ... so,
++
> would increment then the assignment would be made (lhs = rhs). afaicr. you
> can further test this by ++$imagenum...the pre/post incrementor should
have
> NO impact on the final lhs result if this precedence processing is true.
Steve, run the following and then look again at the original OP's
expression.
You've got the experience to work this out I think.
$i = 1;
echo $i++.'<br>';
echo $i;
The brain hurt isn't going away just yet ; )
Vince
[Back to original message]
|