<?php class ArrayPage{ public $totalPage;//全部页数 public $lists;//每页显示数目 public $arr = array();//分页的数组 public $url = '';//分页地址 public $order; public $_error = '一切正常';//报错提示 public function __construct(array $arr,$lists = 10,$url,$order =0){ if( empty($…