<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.ibase.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.ibase-fetch-assoc.php',
    1 => 'ibase_fetch_assoc',
    2 => 'Fetch a result row from a query as an associative array',
  ),
  'up' => 
  array (
    0 => 'ref.ibase.php',
    1 => 'Firebird/InterBase Funzioni',
  ),
  'prev' => 
  array (
    0 => 'function.ibase-execute.php',
    1 => 'ibase_execute',
  ),
  'next' => 
  array (
    0 => 'function.ibase-fetch-object.php',
    1 => 'ibase_fetch_object',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/ibase/functions/ibase-fetch-assoc.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.ibase-fetch-assoc" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ibase_fetch_assoc</h1>
  <p class="verinfo">(PHP 5, PHP 7 &lt; 7.4.0)</p><p class="refpurpose"><span class="refname">ibase_fetch_assoc</span> &mdash; <span class="dc-title">Fetch a result row from a query as an associative array</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.ibase-fetch-assoc-description">
  <h3 class="title">Descrizione</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>ibase_fetch_assoc</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$result</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$fetch_flag</code><span class="initializer"> = 0</span></span>): <span class="type"><a href="language.types.array.php" class="type array">array</a></span></div>

  <p class="simpara">
   Fetch a result row from a query as an associative array.
  </p>
  <p class="simpara">
   <span class="function"><strong>ibase_fetch_assoc()</strong></span> fetches one row of data from the
   <code class="parameter">result</code>.  If two or more columns of the result
   have the same field names, the last column will take precedence. To
   access the other column(s) of the same name, you either need to access
   the result with numeric indices by using
   <span class="function"><a href="function.ibase-fetch-row.php" class="function">ibase_fetch_row()</a></span> or use alias names in your query.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.ibase-fetch-assoc-parameters">
  <h3 class="title">Elenco dei parametri</h3>
  <dl>
   
    <dt><code class="parameter">result</code></dt>
    <dd>
     <span class="simpara">
      The result handle.
     </span>
    </dd>
   
   
    <dt><code class="parameter">fetch_flag</code></dt>
    <dd>
     <span class="simpara">
      <code class="parameter">fetch_flag</code> is a combination of the constants
      <strong><code>IBASE_TEXT</code></strong> and <strong><code>IBASE_UNIXTIME</code></strong>
      ORed together. Passing <strong><code>IBASE_TEXT</code></strong> will cause this
      function to return BLOB contents instead of BLOB ids. Passing
      <strong><code>IBASE_UNIXTIME</code></strong> will cause this function to return
      date/time values as Unix timestamps instead of as formatted strings.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.ibase-fetch-assoc-returnvalues">
  <h3 class="title">Valori restituiti</h3>
  <p class="simpara">
   Returns an associative array that corresponds to the fetched row.
   Subsequent calls will return the next row in the result set, or <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> if
   there are no more rows.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.ibase-fetch-assoc-seealso">
  <h3 class="title">Vedere anche:</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.ibase-fetch-row.php" class="function" rel="rdfs-seeAlso">ibase_fetch_row()</a> - Fetch a row from an InterBase database</span></li>
   <li><span class="function"><a href="function.ibase-fetch-object.php" class="function" rel="rdfs-seeAlso">ibase_fetch_object()</a> - Get an object from a InterBase database</span></li>
  </ul>
 </div>


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