<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Returns value of the element</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="oci-collection.free.html">OCI-Collection::free</a></div> <div class="next" style="text-align: right; float: right;"><a href="oci-collection.max.html">OCI-Collection::max</a></div> <div class="up"><a href="class.OCI-Collection.html">OCI-Collection</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="oci-collection.getelem" class="refentry"> <div class="refnamediv"> <h1 class="refname">OCI-Collection::getElem</h1> <p class="verinfo">(PHP 5, PECL OCI8 >= 1.1.0)</p><p class="refpurpose"><span class="refname">OCI-Collection::getElem</span> — <span class="dc-title">Returns value of the element</span></p> </div> <div class="refsect1 description" id="refsect1-oci-collection.getelem-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <span class="methodname"><strong>OCI-Collection::getElem</strong></span> ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$index</code></span> )</div> <p class="para rdfs-comment"> Returns element's value with the index <em><code class="parameter">index</code></em> (0-based). </p> </div> <div class="refsect1 parameters" id="refsect1-oci-collection.getelem-parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><em><code class="parameter">index</code></em></span> <dd> <p class="para"> The element index. First index is 0. </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues" id="refsect1-oci-collection.getelem-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns <strong><code>FALSE</code></strong> if such element doesn't exist; <strong><code>NULL</code></strong> if element is <strong><code>NULL</code></strong>; string if element is column of a string datatype or number if element is numeric field. </p> </div> <div class="refsect1 seealso" id="refsect1-oci-collection.getelem-seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"><a href="oci-collection.assignelem.html" class="xref">OCI-Collection::assignElem</a></li> </ul> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="oci-collection.free.html">OCI-Collection::free</a></div> <div class="next" style="text-align: right; float: right;"><a href="oci-collection.max.html">OCI-Collection::max</a></div> <div class="up"><a href="class.OCI-Collection.html">OCI-Collection</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>