Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php split array into chunks

$cars=array("Volvo","BMW","Toyota","Honda","Mercedes","Opel");
print_r(array_chunk($cars,2));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #split #array #chunks
ADD COMMENT
Topic
Name
4+2 =