What will be the output of the following PHP code? [code] <?php $i = 0 while ($i < 3) { print "hi"; $i--; } print "hello" ?> [/code]

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

Tìm kiếm

Back
Top