1.

What will be the output of the following PHP code? "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. rray ( [d] => yellow )
B. rray ( [i] => orange )
C. rray ( [h] => orange )
D. rray ( [d] => yellow [h] => orange )
Answer» B. rray ( [i] => orange )


Discussion

No Comment Found

Related MCQs