πŸ“Š PHP
Q. What will be the output of the following PHP code ?
Code:
<?php
switch($t)
{
case 2:
    print "Hello";
    break;
case 1:
    print "World";
    break;
}
?>
  • (A) Error
  • (B) Hello
  • (C) World
  • (D) Hello world
πŸ’¬ Discuss
βœ… Correct Answer: (A) Error

Explanation: Error Undefined variable: t

Explanation by: Parvesh Kanani
Error Undefined variable: t

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
210
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Parvesh Kanani
Publisher
πŸ“ˆ
80%
Success Rate