Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Split an array into chunks of two:
SUBMITTED BY:
henry1874w
DATE:
June 22, 2017, 12:07 a.m.
FORMAT:
Text only
SIZE:
109 Bytes
Raw
Download
Tweet
HITS:
119
Go to comments
Report
<?php
$cars=array
("Volvo","BMW","Toyota","Honda","Mercedes","O
pel");
print_r(array_chunk($cars,2));
?>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus