&lt;?php$a = array&#40;&quot;red&quot;, &quot;green&quot;, &quot;blue&quot;&#41;;array_pop&#40;$a&#41;;print_r&#40;$a&#41;;?&gt;
A. Array ( [0] => red [1] => green )
B. Array ( [0] => green [1] => blue )
C. Array ( [0] => red [1] => blue )
D. Array ( [0] => blue [1] => blue )
Answer:A
&lt;?php$a = array&#40;&quot;red&quot;, &quot;green&quot;, &quot;blue&quot;&#41;;array_pop&#40;$a&#41;;print_r&#40;$a&#41;;?&gt;
A. Array ( [0] => red [1] => green ) B. Array ( [0] => green [1] => blue ) C. Array ( [0] => red [1] => blue ) D. Array ( [0] => blue [1] => blue )
Explanation: The array_pop() function deletes the last element of an array.