?
What will be the output of the following PHP code ?
What will be the output of the following PHP code ?
<?php
$a = 1; $b = 3;
$d = $a++ + ++$b;
echo $d;
?>
<?php
$a = 1; $b = 3;
$d = $a++ + ++$b;
echo $d;
?>
Answer & Solution
Correct Answer:
Option
A
Post increment of a is done after expression evaluation.
Join the Discussion
Login to post a comment or share your explanation.
Login