ExamVeda
Login
Home
Control Structures(Loop in PHP)
?

What will be the output of the following PHP code ?
<?php
for ($count = 1; $count < 20; $count++);
    print $count;
?>

Answer & Solution
Correct Answer: Option A
The for loop has no body,it just runs till condition is satisfied.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.