ExamVeda
Login
Home
Operators and Expressions in php
?

What will be the output of the following PHP code ?
<?php
$a = 1; $b = 1; $d = 1;
print ++$a + ++$a+$a++; print $a++ + ++$b; print ++$d + $d++ + $a++;
?>

Answer & Solution
Correct Answer: Option A
Follow the order of post and pre increments.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.