Q. What will be the output of the following PHP code ?

Code:
<?php
$s = 2;
for (1; $s == 1; $s = 2)
    {
    print "In for loop statement executed...";
    }
print "After for loop statement executed...\n";
?>
  • (A) After for loop statement executed...
  • (B) Error
  • (C) In for loop statement executed...
  • (D) Nothing
πŸ’¬ Discuss
βœ… Correct Answer: (A) After for loop statement executed...

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
512295
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Sikhar Chaudhary
Publisher
πŸ“ˆ
90%
Success Rate