common.php 182 B

123456789
  1. <?php
  2. function getLimit($step = 10)
  3. {
  4. $param=input();
  5. $page=isset($param['page'])?$param['page']:1;
  6. $start = ($page- 1) * $step;
  7. return (int)$start.','.(int)$step;
  8. }