What will be the output of the following PHP code ?
<?php
for ($i = 0; -5 ; $i++)
{
print"i";
if ($i == 3)
break;
}
?>
<?php
for ($i = 0; -5 ; $i++)
{
print"i";
if ($i == 3)
break;
}
?>A. 0 1 2 3 4
B. 0 1 2 3
C. 0 1 2 3 4 5
D. error
Answer: Option B

Join The Discussion