?
What will be the output of the following PHP code ?
What will be the output of the following PHP code ?
<php
for ($i = 0; $i < 5; $i++)
{
for ($j = $i; $j > 0; $i--)
print $i;
}
?>
<php
for ($i = 0; $i < 5; $i++)
{
for ($j = $i; $j > 0; $i--)
print $i;
}
?>
Answer & Solution
Correct Answer:
Option
A
In the second loop j value is not being changed.
Join the Discussion
Login to post a comment or share your explanation.
Login