What will be the output of the following PHP code? [code] <?php for ($i == 2; ++$i == $i; ++$i) print "In for loop "; print "After loop\n";

KellyPoima

New member
What will be the output of the following PHP code?
Code:
<?php
for ($i == 2; ++$i == $i; ++$i)
    print "In for loop ";
print "After loop\n";
?>
A. In for loopIn for loopIn for loopIn for loop……infinitely
B. After for loopAfter for loopAfter for loop……..infinitely
C. In for loopAfter for loopIn for loopAfter for loopIn for loopAfter for loop…..infinitely
D. After for loop
 

Tìm kiếm

Back
Top