1
What will be the output of the following PHP code ?
<?php
$i = 2;
while (++$i)
{
while ($i --> 0)
print $i;
}
?>
Answer & Solution
Answer: Option
A
Solution:
The loop ends when i becomes 0.