1.

What will be the output of the following PHP code?
  <?php $a1 = array("a" => "red", "b" => "green", "c" => "blue", "d" => "yellow"); $a2 = array("e" => "red", "f" => "green", "g" => "blue", "h" => "orange"); $a3 = array("i" => "orange"); $a4 = array_combine($a2, $a3); $result = array_diff($a4, $a2); print_r($result); ?>  

A. Array ( [d] =&gt; yellow )
B. Array ( [i] =&gt; orange )
C. Array ( [h] =&gt; orange )
D. Array ( [d] =&gt; yellow [h] =&gt; orange )
Answer» B. Array ( [i] =&gt; orange )


Discussion

No Comment Found