array_chunk();
作用:把一个数组分割为新的数组块
用法:
实例:把数组分割为带有两个元素的数组块
$cars=array("Volvo","BMW","Toyota","Honda","Mercedes"); print_r(array_chunk($cars,3));
输出: