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

posix_getegid

Description

The posix_getegid of POSIX for PHP returns the effective group ID of the current process.

Syntax

posix_getegid(): int

Return

Returns an int of the effective group ID.

Examples

1 · void

<?

$return = posix_getegid();

echo $return;
20

2 · posix_setegid

<?

$group_id = 40;

posix_setegid($group_id);

$return = posix_getegid();

echo $return;
40