Skip to content

Latest commit

 

History

History
38 lines (34 loc) · 534 Bytes

0362.md

File metadata and controls

38 lines (34 loc) · 534 Bytes

What is the output of the following PHP script.

if ("") {
    echo "a";
} 
if (1) {
    echo "b";
} else if (-2) {
    echo "c";
}
if ("foo") {
    echo "d";
}
if (array(12)) {
    echo "e";
}
if (array()) {
    echo "f";
}
if ("false") {
    echo "g";
}
  • A) bdeg
  • B) abc
  • C) def
  • D) ade
Answer

Answer: A