function.oci-fetch-array.html

来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 202 行 · 第 1/2 页

HTML
202
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Returns the next row from the result data as an associative or   numeric array, or both</title>  <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.oci-fetch-all.html">oci_fetch_all</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.oci-fetch-assoc.html">oci_fetch_assoc</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-fetch-array" class="refentry"> <div class="refnamediv">  <h1 class="refname">oci_fetch_array</h1>  <p class="verinfo">(PHP 5, PECL oci8:1.1-1.2.4)</p><p class="refpurpose"><span class="refname">oci_fetch_array</span> &mdash; <span class="dc-title">Returns the next row from the result data as an associative or   numeric array, or both  </span></p> </div>  <div class="refsect1 description">  <h3 class="title">Description</h3>  <div class="methodsynopsis dc-description">   <span class="type">array</span> <span class="methodname"><b><b>oci_fetch_array</b></b></span>    ( <span class="methodparam"><span class="type">resource</span> <tt class="parameter">$statement</tt></span>   [, <span class="methodparam"><span class="type">int</span> <tt class="parameter">$mode</tt></span>  ] )</div>  <p class="para rdfs-comment">   Returns an array, which corresponds to the next result row.  </p>  <p class="para">For details on the data type mapping performed by the oci8 driver, see the <a href="oci8.datatypes.html" class="link">datatypes supported by the driver</a></p>  <p class="para">   It should be mentioned here, that <b>oci_fetch_array()</b>   is <em class="emphasis">insignificantly</em> slower, than   <a href="function.oci-fetch-row.html" class="function">oci_fetch_row()</a>, but much more handy.  </p> </div> <div class="refsect1 parameters">  <h3 class="title">Parameters</h3>  <p class="para">   <dl>    <dt>     <span class="term"><i><tt class="parameter">statement</tt></i></span>     <dd>      <p class="para">       A valid OCI statement identifier.      </p>     </dd>    </dt>    <dt>     <span class="term"><i><tt class="parameter">statement</tt></i></span>     <dd>      <p class="para">       An optional second parameter can be any combination of the following       constants:       <ul class="simplelist">        <li class="member">         <b><tt>OCI_BOTH</tt></b> - return an array with both associative         and numeric indices (the same as <b><tt>OCI_ASSOC</tt></b>         + <b><tt>OCI_NUM</tt></b>). This is the default behavior.        </li>        <li class="member">         <b><tt>OCI_ASSOC</tt></b> - return an associative array         (as <a href="function.oci-fetch-assoc.html" class="function">oci_fetch_assoc()</a> works).        </li>        <li class="member">         <b><tt>OCI_NUM</tt></b> - return a numeric array,         (as <a href="function.oci-fetch-row.html" class="function">oci_fetch_row()</a> works).        </li>        <li class="member">         <b><tt>OCI_RETURN_NULLS</tt></b> - create empty elements         for the <b><tt>NULL</tt></b> fields.        </li>        <li class="member">         <b><tt>OCI_RETURN_LOBS</tt></b> - return the value of a LOB         of the descriptor.        </li>       </ul>       Default <i><tt class="parameter">mode</tt></i> is <b><tt>OCI_BOTH</tt></b>.      </p>     </dd>    </dt>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?