Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 605 Bytes

0321.md

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 ($e as $value) {
    echo $value;
}
foreach ($f as $value) {
    echo $value;
}

Enter the exact script output

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

Answer: A