<?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 => 'zh',
  ),
  'this' => 
  array (
    0 => 'function.oci-new-collection.php',
    1 => 'oci_new_collection',
    2 => '分配新的 collection 对象',
  ),
  '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' => 'zh',
    '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">分配新的 collection 对象</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">
   分配新的 collection 对象。
  </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">
       Oracle 连接标识符，由 <span class="function"><a href="function.oci-connect.php" class="function">oci_connect()</a></span> 或 <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">
       应该是有效的命名类型（大写）。
      </p>
     </dd>
    
    
     <dt><code class="parameter">schema</code></dt>
     <dd>
      <p class="para">
       应该指向创建命名类型的 scheme 。当传递 <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> 时，使用当前用户名。
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.oci-new-collection-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   返回新 <span class="classname"><a href="class.ocicollection.php" class="classname">OCICollection</a></span> 对象，或者当失败时返回 <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>。
  </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> 现在可为 null。
      </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">
    <span class="classname"><a href="class.ocicollection.php" class="classname">OCICollection</a></span> 类在 PHP 8 和 OCI8 3.0.0 之前叫做 <span class="classname"><strong class="classname">OCI-Collection</strong></span>。
   </p>
  </p></blockquote>
 </div>


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