?
What will be the output of the following PHP code ?
What will be the output of the following PHP code ?
<?php
for (1; $i == 1; $i = 2)
print "In for loop ";
print "After loopn";
?>
<?php
for (1; $i == 1; $i = 2)
print "In for loop ";
print "After loopn";
?>
Answer & Solution
Correct Answer:
Option
B
The loop does not run as i initialized in check statement will be zero.
Join the Discussion
Login to post a comment or share your explanation.
Login