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
 
<cubrid_lob_sendcubrid_lob2_bind>
^CUBRID FunctionsLast updated: Mon, 26 Oct 2026

cubrid_lob_size

(PECL CUBRID >= 8.3.1)

cubrid_lob_size — Get BLOB/CLOB data size

Description

function cubrid_lob_size(resource $lob_identifier): string

cubrid_lob_size() is used to get BLOB/CLOB data size.

Parameters

lob_identifier

LOB identifier.

Return Values

A string representing LOB data size, when process is successful, or false on failure.

Changelog

Version Description
8.4.0 Change return value type from int to string.

Examples

Example #1 cubrid_lob_size() example

<?php
$lobs = cubrid_lob_get($con, "SELECT doc_content FROM doc WHERE doc_id=5");
echo "Doc size:".cubrid_lob_size($lobs[0]);
cubrid_lob_export($conn, $lobs[0], "doc_5.txt");
cubrid_lob_close($lobs);
?>

See Also


<cubrid_lob_sendcubrid_lob2_bind>
^CUBRID FunctionsLast updated: Mon, 26 Oct 2026