Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<OCICollection::trimOCILob::append>
^OCI8Last updated: Mon, 26 Oct 2026

The OCILob class

(PHP 5, PHP 7, PHP 8, PECL OCI8 >= 1.1.0)

Introduction

OCI8 LOB functionality for large binary (BLOB) and character (CLOB) objects.

Note:

The OCI-Lob class was renamed to OCILob in PHP 8 and PECL OCI8 3.0.0 to align with PHP naming standards.

Class synopsis

class OCILob {
/* Methods */
public function append(OCILob $from): bool
public function close(): bool
public function eof(): bool
public function erase(?int $offset = null, ?int $length = null): int|false
public function export(string $filename, ?int $offset = null, ?int $length = null): bool
public function flush(int $flag = 0): bool
public function free(): bool
public function getBuffering(): bool
public function import(string $filename): bool
public function load(): string|false
public function read(int $length): string|false
public function rewind(): bool
public function save(string $data, int $offset = 0): bool
public function seek(int $offset, int $whence = OCI_SEEK_SET): bool
public function setBuffering(bool $mode): bool
public function size(): int|false
public function tell(): int|false
public function truncate(int $length = 0): bool
public function write(string $data, ?int $length = null): int|false
public function writeTemporary(string $data, int $type = OCI_TEMP_CLOB): bool
}

Table of Contents


<OCICollection::trimOCILob::append>
^OCI8Last updated: Mon, 26 Oct 2026