PHP code example of anekdotes / pagination
1. Go to this page and download the library: Download anekdotes/pagination library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
anekdotes / pagination example snippets
use Anekdotes\Pagination\Pagination;
$pagination = new Pagination();
var_dump($pagination->pager(10, 1));
/*
array(6) {
[0]=>
int(1)
[1]=>
int(2)
[2]=>
int(3)
[3]=>
int(4)
[4]=>
int(5)
[5]=>
int(6)
}
*/