<?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 => 'fr',
  ),
  'this' => 
  array (
    0 => 'function.odbc-fetch-object.php',
    1 => 'odbc_fetch_object',
    2 => 'Lit une ligne de r&eacute;sultat dans un objet',
  ),
  'up' => 
  array (
    0 => 'ref.uodbc.php',
    1 => 'Fonctions ODBC',
  ),
  'prev' => 
  array (
    0 => 'function.odbc-fetch-into.php',
    1 => 'odbc_fetch_into',
  ),
  'next' => 
  array (
    0 => 'function.odbc-fetch-row.php',
    1 => 'odbc_fetch_row',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/uodbc/functions/odbc-fetch-object.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.odbc-fetch-object" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">odbc_fetch_object</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.0.2, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">odbc_fetch_object</span> &mdash; <span class="dc-title">Lit une ligne de résultat dans un objet</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.odbc-fetch-object-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>odbc_fetch_object</strong></span>(<span class="methodparam"><span class="type">Odbc\Result</span> <code class="parameter">$statement</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.integer.php" class="type int">int</a></span></span> <code class="parameter">$row</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.stdclass.php" class="type stdClass">stdClass</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   <span class="function"><strong>odbc_fetch_object()</strong></span> lit une ligne de résultat
   dans un objet depuis une requête ODBC.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.odbc-fetch-object-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">statement</code></dt>
     <dd>
      <p class="para">
       L’objet de résultat ODBC depuis <span class="function"><a href="function.odbc-exec.php" class="function">odbc_exec()</a></span>.
      </p>
     </dd>
    
    
     <dt><code class="parameter">row</code></dt>
     <dd>
      <p class="para">
       Le numéro de ligne à récupérer, en option.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.odbc-fetch-object-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="para">
   Retourne un objet qui correspond à la ligne récupérée, ou <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> 
   s&#039;il n&#039;y a plus de ligne de disponible.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.odbc-fetch-object-changelog">
  <h3 class="title">Historique</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Version</th>
      <th>Description</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
 <td>8.4.0</td>
 <td>
  <code class="parameter">statement</code> attend désormais une instance de
  <span class="classname"><strong class="classname">Odbc\Result</strong></span>; auparavant, un <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> était attendu.
 </td>
</tr>

     <tr>
      <td>8.4.0</td>
      <td>
       <code class="parameter">row</code> est désormais nullable.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 notes" id="refsect1-function.odbc-fetch-object-notes">
  <h3 class="title">Notes</h3>
  <blockquote class="note"><p><strong class="note">Note</strong>: 
   <span class="simpara">
    Cette fonction est disponible lorsque PHP est compilé
    avec le support IBM DB2 ou UnixODBC.
   </span>
  </p></blockquote>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.odbc-fetch-object-seealso">
  <h3 class="title">Voir aussi</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.odbc-fetch-row.php" class="function" rel="rdfs-seeAlso">odbc_fetch_row()</a> - Lit une ligne de r&eacute;sultat</span></li>
    <li><span class="function"><a href="function.odbc-fetch-array.php" class="function" rel="rdfs-seeAlso">odbc_fetch_array()</a> - Lit une ligne de r&eacute;sultat dans un tableau associatif</span></li>
    <li><span class="function"><a href="function.odbc-num-rows.php" class="function" rel="rdfs-seeAlso">odbc_num_rows()</a> - Nombre de lignes dans un r&eacute;sultat</span></li>
   </ul>
  </p>
 </div>

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