Tạ Bích Hạnh
Member
What will be the output of the following PHP code?
A. 0
B. infinite loop
C. -1
D. 1
Code:
<?php
for ($i = 0;$i = -1;$i = 1)
{
print $i;
if ($i != 1)
break;
}
?>
B. infinite loop
C. -1
D. 1