downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

cubrid_column_names> <cubrid_col_get
Last updated: Fri, 24 Sep 2010

view this page in

cubrid_col_size

(PECL CUBRID >= 8.3.0)

cubrid_col_sizeIs used to get the number of elements

Description

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.

Parameters

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.

Return Values

Number of elements, when process is successful.

-1, when process is unsuccessful.

Examples

Example #1 cubrid_col_size() example

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


add a note add a note User Contributed Notes
cubrid_col_size
There are no user contributed notes for this page.

cubrid_column_names> <cubrid_col_get
Last updated: Fri, 24 Sep 2010
 
 
show source | credits | sitemap | contact | advertising | mirror sites