?
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 % ++$i; $i++)
{
print"i";
}
?>
<?php
for ($i = 0; $i % ++$i; $i++)
{
print"i";
}
?>
Answer & Solution
Correct Answer:
Option
B
Loop condition is true as i%(i+1) is a float non zero value in php.
Join the Discussion
Login to post a comment or share your explanation.
Login