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

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