<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.posix.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.posix-getgrgid.php',
    1 => 'posix_getgrgid',
    2 => 'Restituisce informazioni su un gruppo dato il suo id',
  ),
  'up' => 
  array (
    0 => 'ref.posix.php',
    1 => 'POSIX Funzioni',
  ),
  'prev' => 
  array (
    0 => 'function.posix-getgid.php',
    1 => 'posix_getgid',
  ),
  'next' => 
  array (
    0 => 'function.posix-getgrnam.php',
    1 => 'posix_getgrnam',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'it',
    'path' => 'reference/posix/functions/posix-getgrgid.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.posix-getgrgid" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">posix_getgrgid</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">posix_getgrgid</span> &mdash; <span class="dc-title">Restituisce informazioni su un gruppo dato il suo id</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.posix-getgrgid-description">
  <h3 class="title">Descrizione</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>posix_getgrgid</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$gid</code></span>): <span class="type"><a href="language.types.array.php" class="type array">array</a></span></div>

  <p class="para rdfs-comment">
   Ottiene informazioni su un gruppo dato il suo id.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.posix-getgrgid-parameters">
  <h3 class="title">Elenco dei parametri</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">gid</code></dt>
     <dd>
      <p class="para">
       L&#039;id del gruppo.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.posix-getgrgid-returnvalues">
  <h3 class="title">Valori restituiti</h3>
  <p class="para">
   Gli elementi dell&#039;array restituiti sono:
   <table class="doctable table">
    <caption><strong>L&#039;array delle informazioni sul gruppo</strong></caption>
    
     <thead>
      <tr>
       <th>Elemento</th>
       <th>Descrizione</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>name</td>
       <td>
        L&#039;elemento name contiene il nome del gruppo. Questo è
        un breve &quot;handle&quot; del gruppo, di solito inferiore a 16
        caratteri, non il vero nome completo.
       </td>
      </tr>

      <tr>
       <td>passwd</td>
       <td>
        L&#039;elemento passwd contiene la password del gruppo in un
        formato criptato. Spesso viene invece restituito un asterisco,
        per esempio su un sistema che impiega password &quot;shadow&quot;.
       </td>
      </tr>

      <tr>
       <td>gid</td>
       <td>
        L&#039;ID del gruppo, dovrebbe essere lo stesso del
        parametro <code class="parameter">gid</code> usato quando si chiama la
        funzione, e quindi ridondante.
       </td>
      </tr>

      <tr>
       <td>members</td>
       <td>
        Questo consiste in un <span class="type"><a href="language.types.array.php" class="type array">array</a></span> di
        <span class="type"><a href="language.types.string.php" class="type string">string</a></span>he per tutti i membri nel gruppo.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.posix-getgrgid-examples">
  <h3 class="title">Esempi</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Example #1 Esempio di utilizzo di <span class="function"><strong>posix_getgrgid()</strong></span></strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /><br />$groupid   </span><span style="color: #007700">= </span><span style="color: #0000BB">posix_getegid</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">$groupinfo </span><span style="color: #007700">= </span><span style="color: #0000BB">posix_getgrgid</span><span style="color: #007700">(</span><span style="color: #0000BB">$groupid</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">$groupinfo</span><span style="color: #007700">);<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">Array
(
    [name]    =&gt; toons
    [passwd]  =&gt; x
    [members] =&gt; Array
        (
            [0] =&gt; tom
            [1] =&gt; jerry
        )
    [gid]     =&gt; 42
)</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.posix-getgrgid-seealso">
  <h3 class="title">Vedere anche:</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.posix-getegid.php" class="function" rel="rdfs-seeAlso">posix_getegid()</a> - Restituisce l'ID del gruppo per il processo corrente</span></li>
    <li><span class="function"><a href="function.posix-getgrnam.php" class="function" rel="rdfs-seeAlso">posix_getgrnam()</a> - Restituisce le informazioni di un gruppo dato il nome</span></li>
    <li><span class="function"><a href="function.filegroup.php" class="function" rel="rdfs-seeAlso">filegroup()</a> - Restituisce il gruppo di un file</span></li>
    <li><span class="function"><a href="function.stat.php" class="function" rel="rdfs-seeAlso">stat()</a> - Da informazioni su un file</span></li>
    <li>la pagina del man di POSIX di GETGRNAM(3)</li>
   </ul>
  </p>
 </div>


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