PHP.nl

posix_getgrnam

posix_getgrnam

Return info about a group by name

 **posix_getgrnam** string $name

Gets information about a group provided its name.

nameThe name of the group

Returns an on success, return.falseforfailure. The array elements returned are:

array

**Voorbeeld: Example use of **

<?php

$groupinfo = posix_getgrnam("toons");

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

posix_getegid``posix_getgrgid``filegroup``stat