Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

posix_getgid

Description

The posix_getgid of POSIX for PHP returns the real group ID of the current process.

Syntax

posix_getgid(): int

Return

Returns the real group id, as an int.

Examples

1 · void

<?

$return = posix_getgid();

echo $return;

?>
20

2 · posix_setgid

<?

$group_id = 40;

posix_setgid($group_id);

$return = posix_getgid();

echo $return;

?>
40
HomeMenu