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

posix_setegid

Description

The posix_setegid of POSIX for PHP sets the effective GID of the current process.

Syntax

posix_setegid(
    int $group_id
): bool

Parameters

group_id

The group id.

Return

Returns true on success or false on failure.

Examples

1 · group_id

<?

$group_id = 40;

$return = posix_setegid($group_id);

var_export($return);
true