php8.5
Home/ Manual/ oci8 / ocilob/ OCILob::truncate

OCILob::truncate

PHP function Edit on GitHub ✎

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

Truncates large object

Description

OCILob::truncate(int $length = 0): bool

Truncates the LOB.

Parameters

length

If provided, this method will truncate the LOB to length bytes. Otherwise, it will completely purge the LOB.

Return Values

Success

Changelog

VersionDescription
8.0.0, PECL OCI8 3.0.0The OCI-Lob class was renamed to OCILob to align with PHP naming standards.

See Also

Source: reference/oci8/ocilob/truncate.xml · from the official PHP manual (php/doc-en)