0 ) ? "首页 n上一页 n" : "首页 n上一页 n"; for ( $i = $CurrentPage - $HalfPer,$i > 0 || $i = 0 , $j = $CurrentPage + $HalfPer, $j < $totalPage || $j = $totalPage;$i < $j ;$i++ ) { $re .= $i == $CurrentPage ? "[" . ( $i + 1 ) . "] n" : "" . ( $i + 1 ) . " n"; } $re .= ( $CurrentPage < $total ) ? "下一页 n尾页n " : "下一页 n尾页 n"; $re="