<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.uodbc.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'function.odbc-field-num.php',
    1 => 'odbc_field_num',
    2 => 'Return column number',
  ),
  'up' => 
  array (
    0 => 'ref.uodbc.php',
    1 => 'ODBC 函数',
  ),
  'prev' => 
  array (
    0 => 'function.odbc-field-name.php',
    1 => 'odbc_field_name',
  ),
  'next' => 
  array (
    0 => 'function.odbc-field-precision.php',
    1 => 'odbc_field_precision',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/uodbc/functions/odbc-field-num.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.odbc-field-num" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">odbc_field_num</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">odbc_field_num</span> &mdash; <span class="dc-title">Return column number</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.odbc-field-num-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>odbc_field_num</strong></span>(<span class="methodparam"><span class="type">Odbc\Result</span> <code class="parameter">$statement</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$field</code></span>): <span class="type"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   Gets the number of the column slot that corresponds to the named field in
   the given result object.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.odbc-field-num-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">statement</code></dt>
     <dd>
      <p class="para">
       ODBC 结果对象.
      </p>
     </dd>
    
    
     <dt><code class="parameter">field</code></dt>
     <dd>
      <p class="para">
       The field name.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.odbc-field-num-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns the field number as an integer, or <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> on error.
   Field numbering starts at 1.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.odbc-field-num-changelog">
  <h3 class="title">更新日志</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>版本</th>
      <th>说明</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
 <td>8.4.0</td>
 <td>
  <code class="parameter">statement</code> 现在需要 <span class="classname"><strong class="classname">Odbc\Result</strong></span>
  实例；之前需要 <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span>。
 </td>
</tr>

    </tbody>
   
  </table>

 </div>

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