?
What will be the output of the following PHP code ?
What will be the output of the following PHP code ?
<?php
$var1 = 1;
echo $var1 = ++$var1 % 2 + ++$var1;
?>
<?php
$var1 = 1;
echo $var1 = ++$var1 % 2 + ++$var1;
?>
Answer & Solution
Correct Answer:
Option
D
Evaluation done from right to left.
Join the Discussion
Login to post a comment or share your explanation.
Login