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, 14 Aug 2009

view this page in

OCI-Lob->read

(PHP 5, PECL oci8 >= 1.1.0)

OCI-Lob->readLit une partie d'un LOB Oracle

Description

OCI-Lob
string read ( int $length )

Lit length octets à partir de la position courante du LOB.

La lecture stoppe lorsque length ont été lus, ou que la fin du LOB a été atteinte. Le pointeur de LOB sera déplacé par cette lecture.

Liste de paramètres

length

La taille des données à lire, en octets.

Valeurs de retour

Retourne le contenu, sous la forme d'une chaîne de caractères, ou FALSE si une erreur survient.



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, 14 Aug 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites