πŸ“Š PHP
Q. What will be the output of the following PHP code ?
Code:
<?php
$s = "";
while ($s = 20)
{   
    print "Hello";
}
print "World";
?>
  • (A) Nothing
  • (B) 20
  • (C) Hello.....infinite time
  • (D) World.....infinite time
πŸ’¬ Discuss
βœ… Correct Answer: (C) Hello.....infinite time

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
65218
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Jitendra Singh
Publisher
πŸ“ˆ
97%
Success Rate