<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.pgsql.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.pg-num-fields.php',
    1 => 'pg_num_fields',
    2 => 'Restituisce il numero di campi',
  ),
  'up' => 
  array (
    0 => 'ref.pgsql.php',
    1 => 'PostgreSQL Funzioni',
  ),
  'prev' => 
  array (
    0 => 'function.pg-meta-data.php',
    1 => 'pg_meta_data',
  ),
  'next' => 
  array (
    0 => 'function.pg-num-rows.php',
    1 => 'pg_num_rows',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'it',
    'path' => 'reference/pgsql/functions/pg-num-fields.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.pg-num-fields" class="refentry">
   <div class="refnamediv">
    <h1 class="refname">pg_num_fields</h1> 
    <p class="verinfo">(PHP 4 &gt;= 4.2.0, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">pg_num_fields</span> &mdash; <span class="dc-title">Restituisce il numero di campi</span></p>

   </div>
   <div class="refsect1 unknown-400" id="refsect1-function.pg-num-fields-unknown-400">
    <h3 class="title">Descrizione</h3>
     <div class="methodsynopsis dc-description">
      <span class="methodname"><strong>pg_num_fields</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$risultato</code></span>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

    <p class="para rdfs-comment">
     <span class="function"><strong>pg_num_fields()</strong></span> restituisce il numero di campi
     (colonne) in un <code class="parameter">risultato</code> PostgreSQL.
     L&#039;argomento è una risorsa risultato ottenuta mediante
     <span class="function"><a href="function.pg-query.php" class="function">pg_query()</a></span>. Restituisce -1 in caso di
     errore.
    </p>
    <blockquote class="note"><p><strong class="note">Nota</strong>: 
     <p class="para">
      Questa funzione si chiamava <code class="literal">pg_numfields()</code>.
     </p>
    </p></blockquote>
    <p class="para">
     Vedere anche <span class="function"><a href="function.pg-num-rows.php" class="function">pg_num_rows()</a></span> e
     <span class="function"><a href="function.pg-affected-rows.php" class="function">pg_affected_rows()</a></span>.
    </p>
   </div>

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