会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
zrn
phper的小白进阶之路
博客园
首页
新随笔
联系
管理
订阅
2018年9月5日
thinkphp5 数组分页
摘要: // 每页数据数,当前页,数组,排序(0不变,1反序) function page_array($count,$page,$array,$order){ $page=(empty($page))?'1':$page; #判断当前页面是否为空 如果为空就表示为第一页面 $start=($page-1)*$count; #计算每次分页的开始位置 ...
阅读全文
posted @ 2018-09-05 13:32 zrn
阅读(1214)
评论(0)
推荐(0)
编辑
公告