<?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 => 'uk',
  ),
  'this' => 
  array (
    0 => 'function.dba-firstkey.php',
    1 => 'dba_firstkey',
    2 => 'Fetch first key',
  ),
  'up' => 
  array (
    0 => 'ref.dba.php',
    1 => 'Функції 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' => 'en',
    '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">Fetch first key</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.dba-firstkey-description">
  <h3 class="title">Опис</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="para rdfs-comment">
   <span class="function"><strong>dba_firstkey()</strong></span> returns the first key of the database
   and resets the internal key pointer. This permits a linear search through
   the whole database.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.dba-firstkey-parameters">
  <h3 class="title">Параметри</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">dba</code></dt>
     <dd>
      <p class="para">
       Примірник <span class="classname"><a href="class.dba-connection.php" class="classname">Dba\Connection</a></span>, якого повертає
функція <span class="function"><a href="function.dba-open.php" class="function">dba_open()</a></span> або
<span class="function"><a href="function.dba-popen.php" class="function">dba_popen()</a></span>.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.dba-firstkey-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
   Returns the key on success або <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> в разі помилки. 
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.dba-firstkey-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">dba</code> має бути примірником
  <span class="classname"><a href="class.dba-connection.php" class="classname">Dba\Connection</a></span>. раніше очікувався дійсний
  <code class="literal">dba</code> <a href="language.types.resource.php" class="link">resource</a>.
 </td>
</tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 seealso" id="refsect1-function.dba-firstkey-seealso">
  <h3 class="title">Прогляньте також</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.dba-nextkey.php" class="function" rel="rdfs-seeAlso">dba_nextkey()</a> - Fetch next key</span></li>
    <li><span class="function"><a href="function.dba-key-split.php" class="function" rel="rdfs-seeAlso">dba_key_split()</a> - Splits a key in string representation into array representation</span></li>
    <li>Example 2 in the <a href="dba.examples.php" class="link">DBA examples</a></li>
   </ul>
  </p>
 </div>

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