<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.oci8.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'function.oci-new-collection.php',
    1 => 'oci_new_collection',
    2 => 'Allocates new collection object',
  ),
  'up' => 
  array (
    0 => 'ref.oci8.php',
    1 => 'Функції OCI8',
  ),
  'prev' => 
  array (
    0 => 'function.oci-lob-is-equal.php',
    1 => 'oci_lob_is_equal',
  ),
  'next' => 
  array (
    0 => 'function.oci-new-connect.php',
    1 => 'oci_new_connect',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/oci8/functions/oci-new-collection.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.oci-new-collection" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">oci_new_collection</h1>
  <p class="verinfo">(PHP 5, PHP 7, PHP 8, 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">Опис</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>oci_new_collection</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$connection</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$type_name</code></span>, <span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$schema</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>): <span class="type"><span class="type"><a href="class.ocicollection.php" class="type OCICollection">OCICollection</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></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">Параметри</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">connection</code></dt>
     <dd>
      <p class="para">
       An Oracle connection identifier, returned by 
       <span class="function"><a href="function.oci-connect.php" class="function">oci_connect()</a></span> or <span class="function"><a href="function.oci-pconnect.php" class="function">oci_pconnect()</a></span>.
      </p>
     </dd>
    
    
     <dt><code class="parameter">type_name</code></dt>
     <dd>
      <p class="para">
       Should be a valid named type (uppercase).
      </p>
     </dd>
    
    
     <dt><code class="parameter">schema</code></dt>
     <dd>
      <p class="para">
       Should point to the scheme, where the named type was created. The name
       of the current user is used when <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> is passed.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.oci-new-collection-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
   Returns a new <span class="classname"><a href="class.ocicollection.php" class="classname">OCICollection</a></span> object or <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> on
   error.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.oci-new-collection-changelog">
  <h3 class="title">Журнал змін</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Версія</th>
      <th>Опис</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.0.0, PECL OCI8 3.0.0</td>
      <td>
       <code class="parameter">schema</code> is now nullable.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 notes" id="refsect1-function.oci-new-collection-notes">
  <h3 class="title">Примітки</h3>
  <blockquote class="note"><p><strong class="note">Зауваження</strong>: 
   <p class="para">
    The <span class="classname"><a href="class.ocicollection.php" class="classname">OCICollection</a></span> class was called <span class="classname"><strong class="classname">OCI-Collection</strong></span> prior to PHP 8 and OCI8 3.0.0.
   </p>
  </p></blockquote>
 </div>


</div><?php manual_footer($setup); ?>