/*
* 文章内容分页类
*/
header("Content-type: text/html; charset=utf-8");
class cutpage {
private $pagestr; //被切分的内容
private $pagearr; //被切分文字的数组格式
private $sum_word; //总字数(UTF-8格式的中文字符也包括)
private $sum_page; //总页数
private $page_word; //一页多少字
private $cut_tag; //自动分页符
private $cut_custom; //手动分页符
private $page; //当前切分的页数,第几页
private $url;
function __construct($pagestr, $page_word = 6500) {
$this->page_word = $page_word;
$this->cut_tag = array("", "