Cubrid Functions
PHP Manual

cubrid_set_add

(PECL CUBRID >= 8.3.0)

cubrid_set_addIs used to insert a single element

Description

int cubrid_set_add ( resource $conn_identifier , string $oid , string $attr_name , string $set_element )

The cubrid_set_add() function is used to insert a single element to a set type attribute (set, multiset) you requested.

Parameters

conn_identifier

Connection identifier.

oid

Oid of the instance you want to work with.

attr_name

Name of the attribute you want to insert an element.

set_element

Content of the element you want to insert.

Return Values

TRUE, when process is successful.

FALSE, when process is unsuccessful.

Examples

Example #1 cubrid_set_add() example

<?php
cubrid_set_add 
($con$oid"friend""James");
cubrid_set_add ($con$oid"friend""Michael");
?>

See Also


Cubrid Functions
PHP Manual