<?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 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.dba-handlers.php',
    1 => 'dba_handlers',
    2 => 'List all the handlers available',
  ),
  'up' => 
  array (
    0 => 'ref.dba.php',
    1 => 'DBA Funzioni',
  ),
  'prev' => 
  array (
    0 => 'function.dba-firstkey.php',
    1 => 'dba_firstkey',
  ),
  'next' => 
  array (
    0 => 'function.dba-insert.php',
    1 => 'dba_insert',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/dba/functions/dba-handlers.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.dba-handlers" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">dba_handlers</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.3.0, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">dba_handlers</span> &mdash; <span class="dc-title">List all the handlers available</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.dba-handlers-description">
  <h3 class="title">Descrizione</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>dba_handlers</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$full_info</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></span></span>): <span class="type"><a href="language.types.array.php" class="type array">array</a></span></div>

  <p class="simpara">
   <span class="function"><strong>dba_handlers()</strong></span> list all the handlers supported by this
   extension.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.dba-handlers-parameters">
  <h3 class="title">Elenco dei parametri</h3>
  <dl>
   
    <dt><code class="parameter">full_info</code></dt>
    <dd>
     <span class="simpara">
      Turns on/off full information display in the result.
     </span>
    </dd>
   
  </dl>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.dba-handlers-returnvalues">
  <h3 class="title">Valori restituiti</h3>
  <p class="simpara">
   Returns an array of database handlers. If <code class="parameter">full_info</code>
   is set to <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>, the array will be associative with the handlers names as
   keys, and their version information as value. Otherwise, the result will be
   an indexed array of handlers names.
  </p>
  <blockquote class="note"><p><strong class="note">Nota</strong>: 
   <span class="simpara">
    When the internal cdb library is used you will see
    <code class="literal">cdb</code> and <code class="literal">cdb_make</code>.
   </span>
  </p></blockquote>
 </div>

 <div class="refsect1 examples" id="refsect1-function.dba-handlers-examples">
  <h3 class="title">Esempi</h3>
  <div class="example" id="example-1">
   <p><strong>Example #1 <span class="function"><strong>dba_handlers()</strong></span> Example</strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /><br /></span><span style="color: #007700">echo </span><span style="color: #DD0000">"Available DBA handlers:\n"</span><span style="color: #007700">;<br />foreach (</span><span style="color: #0000BB">dba_handlers</span><span style="color: #007700">(</span><span style="color: #0000BB">true</span><span style="color: #007700">) as </span><span style="color: #0000BB">$handler_name </span><span style="color: #007700">=&gt; </span><span style="color: #0000BB">$handler_version</span><span style="color: #007700">) {<br />  </span><span style="color: #FF8000">// clean the versions<br />  </span><span style="color: #0000BB">$handler_version </span><span style="color: #007700">= </span><span style="color: #0000BB">str_replace</span><span style="color: #007700">(</span><span style="color: #DD0000">'$'</span><span style="color: #007700">, </span><span style="color: #DD0000">''</span><span style="color: #007700">, </span><span style="color: #0000BB">$handler_version</span><span style="color: #007700">);<br />  echo </span><span style="color: #DD0000">" - </span><span style="color: #0000BB">$handler_name</span><span style="color: #DD0000">: </span><span style="color: #0000BB">$handler_version</span><span style="color: #DD0000">\n"</span><span style="color: #007700">;<br />}<br /><br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

   <div class="example-contents"><p>Il precedente esempio visualizzerà
qualcosa simile a:</p></div>
   <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">Available DBA handlers:
 - cdb: 0.75, Revision: 1.3.2.3
 - cdb_make: 0.75, Revision: 1.2.2.4
 - db2: Sleepycat Software: Berkeley DB 2.7.7: (08/20/99)
 - inifile: 1.0, Revision: 1.6.2.3
 - flatfile: 1.0, Revision: 1.5.2.4</pre>
</div>
   </div>
  </div>
 </div>

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