Q. What will be the output of the following PHP code ?
Code:<?php
for ($v = 0; $v < 5; $v++)
{
for ($u = $v; $u > 0; $v--)
print $v;
}
?>
β
Correct Answer: (D)
Infinite loop
<?php
for ($v = 0; $v < 5; $v++)
{
for ($u = $v; $u > 0; $v--)
print $v;
}
?>
You must be Logged in to update hint/solution