<?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 => 'pt_BR',
  ),
  'this' => 
  array (
    0 => 'function.odbc-cursor.php',
    1 => 'odbc_cursor',
    2 => 'Obt&eacute;m o nome do cursor',
  ),
  'up' => 
  array (
    0 => 'ref.uodbc.php',
    1 => 'Fun&ccedil;&otilde;es de ODBC',
  ),
  'prev' => 
  array (
    0 => 'function.odbc-connection-string-should-quote.php',
    1 => 'odbc_connection_string_should_quote',
  ),
  'next' => 
  array (
    0 => 'function.odbc-data-source.php',
    1 => 'odbc_data_source',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'pt_BR',
    'path' => 'reference/uodbc/functions/odbc-cursor.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.odbc-cursor" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">odbc_cursor</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">odbc_cursor</span> &mdash; <span class="dc-title">Obtém o nome do cursor</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.odbc-cursor-description">
  <h3 class="title">Descrição</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>odbc_cursor</strong></span>(<span class="methodparam"><span class="type">Odbc\Result</span> <code class="parameter">$statement</code></span>): <span class="type"><span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   Obtém o nome do cursor para o ID de resultado informado.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.odbc-cursor-parameters">
  <h3 class="title">Parâmetros</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">statement</code></dt>
     <dd>
      <p class="para">
       O objeto de resultado ODBC.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.odbc-cursor-returnvalues">
  <h3 class="title">Valor Retornado</h3>
  <p class="para">
   Retorna o nome do cursor, como uma string,  ou <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> em caso de falha.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.odbc-cursor-changelog">
  <h3 class="title">Registro de Alterações</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Versão</th>
      <th>Descrição</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
 <td>8.4.0</td>
 <td>
  <code class="parameter">statement</code> agora espera uma instância de <span class="classname"><strong class="classname">Odbc\Result</strong></span>;
  anteriormente, esperava um <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); ?>