Home > PHP > Function > OCI8 > OCI-Collection->assignElem()

OCI-Collection->assignElem()

OCI-Collection->assignElem - Assigns a value to the element of the collection

Syntax

bool OCI-Collection->assignElem (int $index, mixed $value)

Arguments

  • index - The element index. First index is 1.
  • value - Can be a string or a number.

Description

Assigns a value to the element with index index.

Version

PHP 5, PECL OCI8 >= 1.1.0

Return value

Returns TRUE on success or FALSE on failure.