A

Admin • 833K Points
Coach

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
  • Correct Answer - Option(A)
  • Views: 17
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin

Error Undefined variable: t

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.