Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 450 Bytes

0309.md

File metadata and controls

30 lines (25 loc) · 450 Bytes

What is the output of the following PHP script:

$a = 0;
if ($a = 10) {
    echo "a";
}
if ($a == 0) {
    echo "b";
}
if ($a == "0") {
    echo "c";
}

Enter the exact script output

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

Answer: A