-
What will be the output of the following PHP code ?
<?php
$s = 2;
for (1; $s == 1; $s = 2)
{
print "In for loop executed...";
}
print "After for loop statement executed...\n";
?>
-
- Nothing
- In for loop executed...
- After for loop statement executed...
- Error
- None of these
Correct Option: C
The loop does not run as s initialized in check statement will be zero.