&lt;?php$cars = array&#40;&quot;Volvo&quot;, &quot;BMW&quot;, &quot;Toyota&quot;, &quot;Honda&quot;, &quot;Mercedes&quot;, &quot;Opel&quot;&#41;;print_r&#40;array_chunk&#40;$cars, 2&#41;&#41;;?&gt;
A. Array ( [0] => Array ( [1] => Volvo [2] => BMW ) [1] => Array ( [1] => Toyota [2] => Honda ) [2] => Array ( [1] => Mercedes [2] => Opel ) )
B. Array ( [1] => Array ( [1] => Volvo [2] => BMW ) [2] => Array ( [1] => Toyota [2] => Honda ) [3] => Array ( [1] => Mercedes [2] => Opel ) )
C. Array ( [0] => Array ( [0] => Volvo [1] => Volvo ) [1] => Array ( [0] => BMW [1] => BMW ) [2] => Array ( [0] => Toyota [1] => Toyota ) )
D. Array ( [0] => Array ( [0] => Volvo [1] => BMW ) [1] => Array ( [0] => Toyota [1] => Honda ) [2] => Array ( [0] => Mercedes [1] => Opel ) )
Answer:A
&lt;?php$cars = array&#40;&quot;Volvo&quot;, &quot;BMW&quot;, &quot;Toyota&quot;, &quot;Honda&quot;, &quot;Mercedes&quot;, &quot;Opel&quot;&#41;;print_r&#40;array_chunk&#40;$cars, 2&#41;&#41;;?&gt;
A. Array ( [0] => Array ( [1] => Volvo [2] => BMW ) [1] => Array ( [1] => Toyota [2] => Honda ) [2] => Array ( [1] => Mercedes [2] => Opel ) ) B. Array ( [1] => Array ( [1] => Volvo [2] => BMW ) [2] => Array ( [1] => Toyota [2] => Honda ) [3] => Array ( [1] => Mercedes [2] => Opel ) ) C. Array ( [0] => Array ( [0] => Volvo [1] => Volvo ) [1] => Array ( [0] => BMW [1] => BMW ) [2] => Array ( [0] => Toyota [1] => Toyota ) ) D. Array ( [0] => Array ( [0] => Volvo [1] => BMW ) [1] => Array ( [0] => Toyota [1] => Honda ) [2] => Array ( [0] => Mercedes [1] => Opel ) )
Explanation: The array_chunk() function splits an array into chunks of new arrays.