What will be the output of the following PHP code ?
<?php
for ($i = 0;$i = -1;$i = 1)
{
print $i;
if ($i != 1)
break;
}
?>
<?php
for ($i = 0;$i = -1;$i = 1)
{
print $i;
if ($i != 1)
break;
}
?>A. 0
B. infinite loop
C. -1
D. 1
Answer: Option C

Join The Discussion