PEAR Manual
Prev |  | Next

# Pager::getPageIdByOffset()

Pager::getPageIdByOffset() -- Returns the page number for the given offset

## Synopsis

    require_once 'Pager/Pager.php';

``array Pager_Sliding::getPageIdByOffset` (integer $index)`

## Description

This method is only available in "Jumping" mode.

## Parameter

- `integer $index` - Offset to get pageID for

## Return value

return Page number for this offset

Prev | Home | Next
Pager::getPageData() | Up | Pager::getPageRangeByPageId()