What will be the output of the following PHP code ?
<?php
$i = 0;
while($i = 10)
{
print "hi";
}
print "hello";
?>
<?php
$i = 0;
while($i = 10)
{
print "hi";
}
print "hello";
?>A. hello
B. infinite loop
C. hihello
D. error
Answer: Option B

Join The Discussion