?
What will be the output of the following PHP code ?
What will be the output of the following PHP code ?
<?php
$var1 = 1 + ++5;
echo $var1;
?>
<?php
$var1 = 1 + ++5;
echo $var1;
?>
Answer & Solution
Correct Answer:
Option
B
Operator ++ can be done only on variables.
Join the Discussion
Login to post a comment or share your explanation.
Login