ExamVeda
Login
Home
This question belongs to PHP Arrays
Arrays
?

What will be the output of the following PHP code?
<?php
$cars = array("Volvo", "BMW", "Toyota", "Honda", "Mercedes", "Opel");
print_r(array_chunk($cars, 2));
?>

Answer & Solution
Correct Answer: Option D
The array_chunk() function splits an array into chunks of new arrays.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.