&lt;?php$a = array&#40;&quot;a&quot;=&gt;&quot;red&quot;, &quot;b&quot;=&gt;&quot;green&quot;, &quot;c&quot;=&gt;&quot;blue&quot;&#41;;echo array_shift&#40;$a&#41;;print_r &#40;$a&#41;;?&gt;
A. green
B. red
C. blue
D. none of the above
Answer:A
&lt;?php$a = array&#40;&quot;a&quot;=&gt;&quot;red&quot;, &quot;b&quot;=&gt;&quot;green&quot;, &quot;c&quot;=&gt;&quot;blue&quot;&#41;;echo array_shift&#40;$a&#41;;print_r &#40;$a&#41;;?&gt;
A. green B. red C. blue D. none of the above
Explanation: The array_shift() function removes the first element from an array, and returns the value of the removed element.