&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;, &quot;h&quot; =&gt; &quot;orange&quot;&#41;;$a3 = array&#40;&quot;i&quot; =&gt; &quot;orange&quot;&#41;;$a4 = array_combine&#40;$a2, $a3&#41;;$result = array_diff&#40;$a4, $a2&#41;;print_r&#40;$result&#41;;?&gt;
A. Array ( [d] => yellow )
B. Array ( [i] => orange )
C. Array ( [h] => orange )
D. Array ( [d] => yellow [h] => orange )
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;, &quot;h&quot; =&gt; &quot;orange&quot;&#41;;$a3 = array&#40;&quot;i&quot; =&gt; &quot;orange&quot;&#41;;$a4 = array_combine&#40;$a2, $a3&#41;;$result = array_diff&#40;$a4, $a2&#41;;print_r&#40;$result&#41;;?&gt;
A. Array ( [d] => yellow ) B. Array ( [i] => orange ) C. Array ( [h] => orange ) D. Array ( [d] => yellow [h] => orange )
Explanation: The array_diff() function compares the values of two (or more) arrays, and returns the differences.