PHP 数组函数 array_chunk()
PHP 数组函数 array_chunk()
<?php
$input = array('abc', 'bcd', 'cde', 'def', 'efg');
print_r(array_chunk($input, 4));
print_r(array_chunk($input, 2, true));
?>
<?php
$input = array('abc', 'bcd', 'cde', 'def', 'efg');
print_r(array_chunk($input, 4));
print_r(array_chunk($input, 2, true));
?>