ExamVeda
Login
Home
Control Structures(Loop in PHP)
?

What will be the output of the following PHP code ?
<?php
$a = 97;
switch(?$a)
{
case "a":
    print "hi";
    break;
case 97:
    print "hello";
    break;
default:
    print "hi1";
}
?>

Answer & Solution
Correct Answer: Option D
Downcasting does not happen in case,it compares only with its data type.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.