<?php function getLimit($step = 10) { $param=input(); $page=isset($param['page'])?$param['page']:1; $start = ($page- 1) * $step; return (int)$start.','.(int)$step; }