Thinkphp数组分页如何操作
import ( "@.ORG.ZQPage" ); //导入分页类
$newarray;//是一个二维数组
$count=count($newarray);
$listrows = 15;//每页显示的记录数
$Page = new ZQPage($count,$listrows,1);
//===============(总页数,每页显示记录数,css样式 0-9)
$pagelist = $Page->show();//分页变量
$this->assign('pagelist',$pagelist);//分页变量输出到模板
$list=array_slice($newarray,$Page->firstRow,$Page->listRows);
$this->assign('list', $list);