PHP Source:
<!DOCTYPE html>
<html>
<body>

<?php
$cars=array("Volvo","BMW","Toyota","Honda","Mercedes","Opel");
print_r(array_chunk($cars,2));
?>


</body>
</html>
Result:
Show PHP - © w3schools.com
Privacy Policy