Q. What will be the output of the following PHP code ?
Code:
<?php
$p = 5;
while($p = 20)
{
print "INDIA";
}
print "USA";
?>
β
Correct Answer: (D)
INDIA.....infinite time
Explanation: While condition always gives 1.