PHP: Simple Pagination
This is a simple pagination snippet I wrote for a Drupal module I was working on. I’ve “unDruaplized” it and now it’s completely independent.
The function will calculate the number of pages to display based on $total
and $shown
. In addition, it'll append the…