<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.dba.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'function.dba-firstkey.php',
    1 => 'dba_firstkey',
    2 => 'Lit la premi&egrave;re cl&eacute; DBA',
  ),
  'up' => 
  array (
    0 => 'ref.dba.php',
    1 => 'Fonctions DBA',
  ),
  'prev' => 
  array (
    0 => 'function.dba-fetch.php',
    1 => 'dba_fetch',
  ),
  'next' => 
  array (
    0 => 'function.dba-handlers.php',
    1 => 'dba_handlers',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/dba/functions/dba-firstkey.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.dba-firstkey" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">dba_firstkey</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">dba_firstkey</span> &mdash; <span class="dc-title">Lit la première clé DBA</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.dba-firstkey-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>dba_firstkey</strong></span>(<span class="methodparam"><span class="type"><a href="class.dba-connection.php" class="type Dba\Connection">Dba\Connection</a></span> <code class="parameter">$dba</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="simpara">
   <span class="function"><strong>dba_firstkey()</strong></span> retourne la première clé
   de la base de données et réinitialise le pointeur interne de clé.
   Cela permet un parcours linéaire de toute la base.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.dba-firstkey-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <dl>
   
    <dt><code class="parameter">dba</code></dt>
    <dd>
     <span class="simpara">
      Une instance de <span class="classname"><a href="class.dba-connection.php" class="classname">Dba\Connection</a></span>, renvoyée par <span class="function"><a href="function.dba-open.php" class="function">dba_open()</a></span> ou <span class="function"><a href="function.dba-popen.php" class="function">dba_popen()</a></span>.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.dba-firstkey-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="simpara">
   Retourne la clé en cas de succès ou <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> si une erreur survient.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.dba-firstkey-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>
  Le paramètre <code class="parameter">dba</code> attend désormais une instance de <span class="classname"><a href="class.dba-connection.php" class="classname">Dba\Connection</a></span>;
  auparavant, une <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="literal">dba</code> valide était attendue.
 </td>
</tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 seealso" id="refsect1-function.dba-firstkey-seealso">
  <h3 class="title">Voir aussi</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.dba-nextkey.php" class="function" rel="rdfs-seeAlso">dba_nextkey()</a> - Lit la cl&eacute; DBA suivante</span></li>
   <li><span class="function"><a href="function.dba-key-split.php" class="function" rel="rdfs-seeAlso">dba_key_split()</a> - Transforme une repr&eacute;sentation de cl&eacute; DBA par cha&icirc;ne en une
   repr&eacute;sentation par tableau</span></li>
   <li>Exemple 2 dans les <a href="dba.examples.php" class="link">exemples DBA</a></li>
  </ul>
 </div>

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