pg_lo_read

(PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8)

pg_lo_read從大型對象中讀入數(shù)據(jù)

說明

pg_lo_read(resource $large_object, int $len): string

pg_lo_read() 從大型對象中讀入最多 len 字節(jié)的數(shù)據(jù)并以字符串返回。large_object 指定了有效的大型對象的資源號,len 則指定了大型對象的段所允許的最大長度。如果出錯則返回 false

要使用大型對象(lo)接口,需要將其放置在事務(wù)塊中。

注意:

本函數(shù)以前的名字為 pg_loread()。

參見 pg_lo_read_all()。