ExamVeda
Login
Home
Operators and Expressions in php
?

What will be the output of the following PHP code ?
<?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.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.