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

Code:
<?php
$n = "";
while ($n = 20)
{   
    print "Yami";
}
print "Thakur";
?>
  • (A) Yami
  • (B) Thakur
  • (C) YamiThakur
  • (D) Infinite loop
πŸ’¬ Discuss
βœ… Correct Answer: (D) Infinite loop

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
207
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Yami Thakur
Publisher
πŸ“ˆ
80%
Success Rate