?
What will be the output of the following PHP code ?
What will be the output of the following PHP code ?
<?php
$var1 = 3;
print ++$var++;
?>
<?php
$var1 = 3;
print ++$var++;
?>
Answer & Solution
Correct Answer:
Option
D
First preincrement is done and the result is a number,thus post increment cannot be performed on it.
Join the Discussion
Login to post a comment or share your explanation.
Login