(PECL CUBRID >= 8.3.1)
Get BLOB/CLOB data size
string cubrid_lob_size ( resource $lob_identifier )
cubrid_lob_size() is used to get BLOB/CLOB data size.
Parameters:
lob_identifier
LOB identifier.
Returns:
A string representing LOB data size, when process is successful.
FALSE
, when process is unsuccessful.
Changelog:
8.4.0
Change return value type from int to string.
Examples:
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:
Please login to continue.