Home > PHP > Function > PostgreSQL > pg_lo_tell()

pg_lo_tell()

pg_lo_tell - Returns current seek position a of large object

Syntax

int pg_lo_tell (resource $large_object)

Arguments

  • large_object - PostgreSQL large object (LOB) resource, returned by pg_lo_open().

Description

pg_lo_tell() returns the current position (offset from the beginning) of a large object.

Version

PHP 4.2.0, 5

Return value

The current seek offset (in number of bytes) from the beginning of the large object. If there is an error, the return value is negative.