Q. What will be the output of the following PHP code ?

Code:
<?php
$p = 10;
while (--$p > 0)
{   
    $p++; 
    print $p; 
    print "INDIA";
}
?>
  • (A) Error
  • (B) 10
  • (C) 0
  • (D) 10INDIA......infinite time
πŸ’¬ Discuss
βœ… Correct Answer: (D) 10INDIA......infinite time

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
147812
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Jitendra Singh
Publisher
πŸ“ˆ
85%
Success Rate