downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

posix_getlogin> <posix_getgrnam
[edit] Last updated: Fri, 25 May 2012

view this page in

posix_getgroups

(PHP 4, PHP 5)

posix_getgroups現在のプロセスのグループセットを返す

説明

array posix_getgroups ( void )

現在のプロセスのグループセットを取得します。

返り値

現在のプロセスのグループセットについて、 グループ ID を表す整数値を含む配列を返します。

例1 posix_getgroups() の使用例

<?php

$groups 
posix_getgroups();

print_r($groups);
?>

上の例の出力は、 たとえば以下のようになります。

Array
(
    [0] => 4
    [1] => 20
    [2] => 24
    [3] => 25
    [4] => 29
    [5] => 30
    [6] => 33
    [7] => 44
    [8] => 46
    [9] => 104
    [10] => 109
    [11] => 110
    [12] => 1000
)

参考

  • posix_getgrgid() - 指定したグループ ID を有するグループに関する情報を返す



add a note add a note User Contributed Notes posix_getgroups
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites