πŸ“Š PHP
Q. What will be the output of the following PHP code ?
Code:
<?php
$n = 128;
switch($n)
{
case "n":
    print "Welcome to";
    break;
case 128:
    print "MCQ";
    break;
default:
    print "BUDDY";
}
?>
  • (A) BUDDY
  • (B) Error
  • (C) MCQ
  • (D) Welcome to
πŸ’¬ Discuss
βœ… Correct Answer: (C) MCQ

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
108586
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Parvesh Kanani
Publisher
πŸ“ˆ
95%
Success Rate