Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 473 Bytes

0308.md

File metadata and controls

24 lines (20 loc) · 473 Bytes

What is the output of the following PHP script:

$a = 10;
$b = 20;
$c = 30;
echo ($a < 50 && $b > 100 || $c == 30) ? "a""b";
echo ($b < 50 XOR $c == 30) ? "c" : "d";

Enter the exact script output

  • A) ad
  • B) b
  • C) ab
  • D) a
Answer

Answer: A