<?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 => 'ja',
  ),
  'this' => 
  array (
    0 => 'function.posix-getgroups.php',
    1 => 'posix_getgroups',
    2 => '現在のプロセスのグループセットを返す',
  ),
  'up' => 
  array (
    0 => 'ref.posix.php',
    1 => 'POSIX 関数',
  ),
  'prev' => 
  array (
    0 => 'function.posix-getgrnam.php',
    1 => 'posix_getgrnam',
  ),
  'next' => 
  array (
    0 => 'function.posix-getlogin.php',
    1 => 'posix_getlogin',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/posix/functions/posix-getgroups.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.posix-getgroups" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">posix_getgroups</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">posix_getgroups</span> &mdash; <span class="dc-title">現在のプロセスのグループセットを返す</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.posix-getgroups-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>posix_getgroups</strong></span>(): <span class="type"><span class="type"><a href="language.types.array.php" class="type array">array</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   現在のプロセスのグループセットを取得します。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.posix-getgroups-parameters">
  <h3 class="title">パラメータ</h3>
  <p class="para">この関数にはパラメータはありません。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.posix-getgroups-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="para">
   現在のプロセスのグループセットについて、
   グループ ID を表す整数値を含む配列を返します。
   失敗した場合に <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> を返します
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.posix-getgroups-examples">
  <h3 class="title">例</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>例1 <span class="function"><strong>posix_getgroups()</strong></span> の使用例</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /><br />$groups </span><span style="color: #007700">= </span><span style="color: #0000BB">posix_getgroups</span><span style="color: #007700">();<br /><br /></span><span style="color: #0000BB">print_r</span><span style="color: #007700">(</span><span style="color: #0000BB">$groups</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>上の例の出力は、
たとえば以下のようになります。</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">Array
(
    [0] =&gt; 4
    [1] =&gt; 20
    [2] =&gt; 24
    [3] =&gt; 25
    [4] =&gt; 29
    [5] =&gt; 30
    [6] =&gt; 33
    [7] =&gt; 44
    [8] =&gt; 46
    [9] =&gt; 104
    [10] =&gt; 109
    [11] =&gt; 110
    [12] =&gt; 1000
)</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.posix-getgroups-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> - 指定したグループ ID を有するグループに関する情報を返す</span></li>
   </ul>
  </p>
 </div>


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