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;
}
?>
β
Correct Answer: (A)
Error
Explanation: Error Undefined variable: t