ExamVeda
Login
Home
Operators and Expressions in php
?

What will be the output of the following PHP code ?
<?php
$var1 = 0;
$var1 = ($var1 + 5)++; 
echo $var1; 
?>

Answer & Solution
Correct Answer: Option B
Operator ++ can be done only on variables.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.