?
What will be the output of the following PHP code ?
What will be the output of the following PHP code ?
<?php
do
{
print "hi";
}
while(0);
print "hello";
?>
<?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.
Join the Discussion
Login to post a comment or share your explanation.
Login