?
What will be the output of the following PHP code ?
What will be the output of the following PHP code ?
<?php
$i = 0;
while($i = 10)
{
print "hi";
}
print "hello";
?>
<?php
$i = 0;
while($i = 10)
{
print "hi";
}
print "hello";
?>
Answer & Solution
Correct Answer:
Option
B
While condition always gives 1.
Join the Discussion
Login to post a comment or share your explanation.
Login