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

Code:
<?php
$str;
if ($str)
    print "Hello" ;
else
    print "MCQ Buddy";
?>
  • (A) Hello
  • (B) MCQ Buddy
  • (C) Hello MCQ Buddy
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (B) MCQ Buddy

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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