PHP.nl

posix_getgrgid

posix_getgrgid

Return info about a group by group id

 **posix_getgrgid** int $group_id

Gets information about a group provided its id.

group_idThe group id.

The array elements returned are:

The function returns false on failure.

**Voorbeeld: Example use of **

<?php

$groupid   = posix_getegid();
$groupinfo = posix_getgrgid($groupid);

print_r($groupinfo);
?>
Array
(
    [name]    => toons
    [passwd]  => x
    [members] => Array
        (
            [0] => tom
            [1] => jerry
        )
    [gid]     => 42
)

posix_getegid``posix_getgrnam``filegroup``stat