Sophie

Sophie

distrib > Mageia > 4 > i586 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 4844

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!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>Allocates new collection object</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.oci-lob-is-equal.html">oci_lob_is_equal</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.oci-new-connect.html">oci_new_connect</a></div>
 <div class="up"><a href="ref.oci8.html">OCI8 Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.oci-new-collection" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">oci_new_collection</h1>
  <p class="verinfo">(PHP 5, PECL OCI8 &gt;= 1.1.0)</p><p class="refpurpose"><span class="refname">oci_new_collection</span> &mdash; <span class="dc-title">Allocates new collection object</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.oci-new-collection-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type"><span class="type OCI-Collection">OCI-Collection</span></span> <span class="methodname"><strong>oci_new_collection</strong></span>
    ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$connection</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$tdo</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$schema</code><span class="initializer"> = <strong><code>NULL</code></strong></span></span>
  ] )</div>

  <p class="para rdfs-comment">
   Allocates a new collection object.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.oci-new-collection-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    <dt>

     <span class="term"><em><code class="parameter">connection</code></em></span>
     <dd>

      <p class="para">
       An Oracle connection identifier, returned by 
        <span class="function"><a href="function.oci-connect.html" class="function">oci_connect()</a></span> or  <span class="function"><a href="function.oci-pconnect.html" class="function">oci_pconnect()</a></span>.
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">tdo</code></em></span>
     <dd>

      <p class="para">
       Should be a valid named type (uppercase).
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">schema</code></em></span>
     <dd>

      <p class="para">
       Should point to the scheme, where the named type was created. The name
       of the current user is the default value.
      </p>
     </dd>

    </dt>

   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.oci-new-collection-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns a new <strong class="classname">OCICollection</strong> object or <strong><code>FALSE</code></strong> on
   error.
  </p>
 </div>


 <div class="refsect1 notes" id="refsect1-function.oci-new-collection-notes">
  <h3 class="title">Notes</h3>
  <blockquote class="note"><p><strong class="note">Note</strong>: 
   <p class="para">
    In PHP versions before 5.0.0 you must use 
     <span class="function"><a href="function.ocinewcollection.html" class="function">ocinewcollection()</a></span> instead. This name still can be
    used, it was left as alias of  <span class="function"><strong>oci_new_collection()</strong></span> for
    downwards compatability. This, however, is deprecated and not recommended.
   </p>
  </p></blockquote>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.oci-lob-is-equal.html">oci_lob_is_equal</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.oci-new-connect.html">oci_new_connect</a></div>
 <div class="up"><a href="ref.oci8.html">OCI8 Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>