What will be the output of the following PHP 7.1 code?
var_dump(0 == "x");
var_dump("2" == "02");
var_dump("20" == "2e2");
var_dump(200 == "2e4");
switch ("x") {
case 0:
echo "0";
break;
case "x":
echo "x";
break;
}
?>
Correct Answer:
bool(true)
bool(true)
bool(false)
bool(false)
0
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More PHP 5 MCQ Questions