php total 100 perpage 15 pages ceil total perpage var_dump pages

1
2
3
4
5
6
7
8
9
<?php
$total = 100;
$perpage = 15;
$pages = ceil($total / $perpage);
var_dump($pages);
?>