&lt;?php$a1 = array&#40;&quot;a&quot; =&gt; &quot;red&quot;, &quot;b&quot; =&gt; &quot;green&quot;, &quot;c&quot; =&gt; &quot;blue&quot;, &quot;d&quot; =&gt; &quot;yellow&quot;&#41;;$a2 = array&#40;&quot;e&quot; =&gt; &quot;red&quot;,&quot;f&quot; =&gt; &quot;green&quot;, &quot;g&quot; =&gt; &quot;blue&quot;&#41;;$result = array_intersect&#40;$a1, $a2&#41;;print_r&#40;$result&#41;;?&gt;
A. Array ( [a] => red [b] => green [c] => blue )
B. Array ( [a] => red [b] => green [c] => blue [d] => yellow )
C. Array ( [e] => red [f] => green [g] => blue )
D. Array ( [a] => red [b] => green [c] => blue [d] => yellow [e] => red [f] => green [g] => blue )
Answer:A
&lt;?php$a1 = array&#40;&quot;a&quot; =&gt; &quot;red&quot;, &quot;b&quot; =&gt; &quot;green&quot;, &quot;c&quot; =&gt; &quot;blue&quot;, &quot;d&quot; =&gt; &quot;yellow&quot;&#41;;$a2 = array&#40;&quot;e&quot; =&gt; &quot;red&quot;,&quot;f&quot; =&gt; &quot;green&quot;, &quot;g&quot; =&gt; &quot;blue&quot;&#41;;$result = array_intersect&#40;$a1, $a2&#41;;print_r&#40;$result&#41;;?&gt;
A. Array ( [a] => red [b] => green [c] => blue ) B. Array ( [a] => red [b] => green [c] => blue [d] => yellow ) C. Array ( [e] => red [f] => green [g] => blue ) D. Array ( [a] => red [b] => green [c] => blue [d] => yellow [e] => red [f] => green [g] => blue )