简单教程
提交运行
代码编辑器:
<?php $cars = array("Volvo","BMW","Toyota","Honda","Mercedes","Opel"); print_r(array_chunk($cars,2));
运行结果: