Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php slice array in half

$halved = array_chunk($books, ceil(count($books)/2));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #slice #array
ADD COMMENT
Topic
Name
8+6 =