pg_lo_tell

PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8
pg_lo_tell - Returns current seek position a of large object
Manual
Code Examples

pg_lo_tell( PgSql\Lob$lob ): int

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

To use the large object interface, it is necessary to enclose it within a transaction block.

Parameters

lob

An PgSql\Lob instance, returned by pg_lo_open.

Return Values

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.

Changelog

Version Description
8.1.0 The lob parameter expects an PgSql\Lob instance now; previously, a resource was expected.

Related Functions

Example of pg_lo_tell

Show all examples for pg_lo_tell

PHP Version:


Function pg_lo_tell:

PostgreSQL Functions

Most used PHP functions