Skip to content

Latest commit

History

History
34 lines (27 loc) 路 605 Bytes

File metadata and controls

34 lines (27 loc) 路 605 Bytes

What is the output of the following PHP script?

$a聽=聽array('z',聽'x');
$b聽=聽array('y',聽'w');

$c聽=聽array('a'聽=>聽1,聽'b'聽=>聽2);
$d聽=聽array('c'聽=>聽3,聽'd'聽=>聽4);

$e聽=聽$a聽+聽$b;
$f聽=聽$c聽+聽$d;

foreach聽($eas$value)聽{
    echo$value;
}
foreach聽($fas$value)聽{
    echo$value;
}

Enter the exact script output

  • A) zx1234
  • B) 1234
  • C) null
  • D) 12zx
Answer

Answer: A