ExamVeda
Login
Home
Operators and Expressions in php
?

What will be the output of the following PHP code ?
<?php
$i = 0;
$x = $i++; $y = ++$i;
print $x; print $y; 
?>

Answer & Solution
Correct Answer: Option A
First case i is incremented after setting x to i.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.