CUBRID 函数
PHP Manual

cubrid_col_size

(PECL CUBRID >= 8.3.0)

cubrid_col_sizeIs used to get the number of elements

说明

int cubrid_col_size ( resource $conn_identifier , string $oid , string $attr_name )

The cubrid_col_size() function is used to get the number of elements in a collection type (set, multiset, sequence) attribute.

参数

conn_identifier

Connection identifier.

oid

Oid the instance that you want to work with.

attr_name

Name of the attribute that you want to work with.

返回值

Number of elements, when process is successful.

FALSE, when process is unsuccessful.

更新日志

版本 说明
8.3.1 Change return value: when process is unsuccessful, return false, not -1.

范例

Example #1 cubrid_col_size() example

<?php
$elem_count 
cubrid_col_size ($con$oid"tel");
echo 
"$oid (tel) has $elem_count elements\n";
?>

CUBRID 函数
PHP Manual