?
What will be the output of the following PHP code ?
What will be the output of the following PHP code ?
<?php
$i = 0;
while (++$i && --$i)
{
print $i;
}
?>
<?php
$i = 0;
while (++$i && --$i)
{
print $i;
}
?>
Answer & Solution
Correct Answer:
Option
C
The first condition itself fails thus the loop exists.
Join the Discussion
Login to post a comment or share your explanation.
Login