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

posix_setgid

Description

The posix_setgid of POSIX for PHP sets the GID of the current process.

Syntax

posix_setgid(
    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_setgid($group_id);

var_export($return);
true