"red", "b"=>"green", "c"=>"blue", "d"=>"yellow");$a2 = array("e"=>"red", "f"=>"gree"> "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", "f"=>"gree"> "red", "b"=>"" /> "red", "b"=>"green", "c"=>"blue", "d"=>"yellow");$a2 = array("e"=>"red", "f"=>"gree" /> "red", "b"=>"green", "c"=>"blue", "d"=>"yellow");$a2 = array("e"=>"red", "f"=>"gree" />
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");$result = array_diff($a1, $a2);print_r($result);
Options:
A .  Array ( [d] => yellow )
B .  Array ( [c] => blue )
C .  Array ( [a] => red )
D .  Array ( [e] => yellow )
Answer: Option A

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