ExamVeda
Login
Home
Operators and Expressions in php
?

What will be the output of the following PHP code ?
<?php
$a = 10;
echo ++$a;
echo $a++;
echo $a;
echo ++$a;
?>

Answer & Solution
Correct Answer: Option A
++$a increments a and then prints it,$a++ prints and then increments.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.