Q. What will be the output of the following PHP code ?
Code:<?php
$p = 10;
while (--$p > 0)
{
$p++;
print $p;
print "INDIA";
}
?>
β
Correct Answer: (D)
10INDIA......infinite time
<?php
$p = 10;
while (--$p > 0)
{
$p++;
print $p;
print "INDIA";
}
?>
You must be Logged in to update hint/solution