ExamVeda
Login
Home
Control Structures(Loop in PHP)
?

What will be the output of the following PHP code ?
<?php
do
{
    print "hi";
}
while(0);
print "hello";
?>

Answer & Solution
Correct Answer: Option B
The do while loop executes atleast once as the condition is in the while loop.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.