&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;;$result = array_flip&#40;$a1&#41;;print_r&#40;$result&#41;;?&gt;
A. Array ( [red] => red [green] => green [blue] => blue [yellow] => yellow )
B. Array ( [a] => a [b] => b [c] => c [d] => d )
C. Array ( [red] => a [green] => b [blue] => c [yellow] => d )
D. Array ( [a] => red [b] => green [c] => blue [d] => yellow )
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;;$result = array_flip&#40;$a1&#41;;print_r&#40;$result&#41;;?&gt;
A. Array ( [red] => red [green] => green [blue] => blue [yellow] => yellow ) B. Array ( [a] => a [b] => b [c] => c [d] => d ) C. Array ( [red] => a [green] => b [blue] => c [yellow] => d ) D. Array ( [a] => red [b] => green [c] => blue [d] => yellow )