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

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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