<?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 => 'uk',
  ),
  'this' => 
  array (
    0 => 'function.posix-getgid.php',
    1 => 'posix_getgid',
    2 => 'Return the real group ID of the current process',
  ),
  'up' => 
  array (
    0 => 'ref.posix.php',
    1 => 'POSIX Функції',
  ),
  'prev' => 
  array (
    0 => 'function.posix-geteuid.php',
    1 => 'posix_geteuid',
  ),
  'next' => 
  array (
    0 => 'function.posix-getgrgid.php',
    1 => 'posix_getgrgid',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/posix/functions/posix-getgid.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.posix-getgid" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">posix_getgid</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">posix_getgid</span> &mdash; <span class="dc-title">Return the real group ID of the current process</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.posix-getgid-description">
  <h3 class="title">Опис</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>posix_getgid</strong></span>(): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

  <p class="para rdfs-comment">
   Return the numeric real group ID of the current process.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.posix-getgid-parameters">
  <h3 class="title">Параметри</h3>
  <p class="para">У цієї функції немає
параметрів.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.posix-getgid-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
   Returns the real group id, as an <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.posix-getgid-examples">
  <h3 class="title">Приклади</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Приклад #1 <span class="function"><strong>posix_getgid()</strong></span> example</strong></p>
    <div class="example-contents"><p>
     This example will print out the real group id, even once the effective
     group id has been changed.
    </p></div>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">echo </span><span style="color: #DD0000">'My real group id is '</span><span style="color: #007700">.</span><span style="color: #0000BB">posix_getgid</span><span style="color: #007700">(); </span><span style="color: #FF8000">//20<br /></span><span style="color: #0000BB">posix_setegid</span><span style="color: #007700">(</span><span style="color: #0000BB">40</span><span style="color: #007700">);<br />echo </span><span style="color: #DD0000">'My real group id is '</span><span style="color: #007700">.</span><span style="color: #0000BB">posix_getgid</span><span style="color: #007700">(); </span><span style="color: #FF8000">//20<br /></span><span style="color: #007700">echo </span><span style="color: #DD0000">'My effective group id is '</span><span style="color: #007700">.</span><span style="color: #0000BB">posix_getegid</span><span style="color: #007700">(); </span><span style="color: #FF8000">//40<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.posix-getgid-seealso">
  <h3 class="title">Прогляньте також</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.posix-getgrgid.php" class="function" rel="rdfs-seeAlso">posix_getgrgid()</a> - Return info about a group by group id</span></li>
    <li><span class="function"><a href="function.posix-getegid.php" class="function" rel="rdfs-seeAlso">posix_getegid()</a> - Return the effective group ID of the current process</span></li>
    <li><span class="function"><a href="function.posix-setgid.php" class="function" rel="rdfs-seeAlso">posix_setgid()</a> - Set the GID of the current process</span></li>
    <li>POSIX man page GETGID(2)</li>
   </ul>
  </p>
 </div>


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