"red", "b" => "green", "c" => "blue", "d" => "yellow");$a2 = array("e" => "red", "> "red", "b" "> What will be the output of the following PHP code?$a1 = array("a" => "red", "b" "red", "b" "> "red", "b" => "green", "c" => "blue", "d" => "yellow");$a2 = array("e" => "red", "> "red", "b" " /> "red", "b" => "green", "c" => "blue", "d" => "yellow");$a2 = array("e" => "red", " /> "red", "b" => "green", "c" => "blue", "d" => "yellow");$a2 = array("e" => "red", " />
Sail E0 Webinar
Question
What will be the output of the following PHP code?$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);
Options:
A .  Array ( [i] => orange )
B .  Array ( [d] => yellow [h] => orange )
C .  Array ( [d] => yellow )
D .  Array ( [h] => orange )
Answer: Option C

Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

More Questions on This Topic :


Latest Videos

Latest Test Papers