&lt;?php$var1 = 1;echo $var1 = ++$var1 % 2 + ++$var1; ?&gt;
A. 1
B. 0
C. 2
D. 3
Answer:A
&lt;?php$var1 = 1;echo $var1 = ++$var1 % 2 + ++$var1; ?&gt;
A. 1 B. 0 C. 2 D. 3
Explanation: Evaluation done from right to left.