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

OCI-Collection->getElem()

OCI-Collection->getElem - Returns value of the element

Syntax

mixed OCI-Collection->getElem (int $index)

Arguments

  • index - The element index. First index is 1.

Description

Returns element's value with the index index (1-based).

Version

PHP 5, PECL OCI8 >= 1.1.0

Return value

Returns FALSE if such element doesn't exist; NULL if element is NULL ; string if element is column of a string datatype or number if element is numeric field.