downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

OCI-Lob->rewind> <OCI-Lob->load
Last updated: Fri, 13 Nov 2009

view this page in

OCI-Lob->read

(PHP 5, PECL OCI8 >= 1.1.0)

OCI-Lob->readラージオブジェクトの一部を読み込む

説明

OCI-Lob
string read ( int $length )

LOB の内部ポインタの現在位置から length バイト読み込みます。

length バイトが読み込まれた、 あるいはラージオブジェクトの終わりに達したとき、読み込みを停止します。 ラージオブジェクトの内部ポインタは、 読み込まれたバイト数分だけシフトされます。

パラメータ

length

読み込むバイト数。

返り値

読み込んだ内容を表す文字列、あるいはエラーの場合に FALSE を返します。



add a note add a note User Contributed Notes
OCI-Lob->read
alvaro at demogracia dot com
08-Oct-2008 07:32
To read the whole LOB into a variable:

<?php
$foo
= $MyBlob->read($MyBlob->size());
?>

OCI-Lob->rewind> <OCI-Lob->load
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites