ExamVeda
Login
Home
Control Structures(Loop in PHP)
?

What will be the output of the following PHP code ?
<?php
for ($count = 0; $count<3;$count++);
{
    print "hi";break;print "hello";
}
?>

Answer & Solution
Correct Answer: Option D
When break is encountered it leaves the loop.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.