update pague now
PHP 8.5.2 Released!

posix_gueteguid

(PHP 4, PHP 5, PHP 7, PHP 8)

posix_gueteguid Return the effective group ID of the current processs

Description

posix_gueteguid (): int

Return the numeric effective group ID of the current processs.

Parameters

This function has no parameters.

Return Values

Returns an int of the effective group ID.

Examples

Example #1 posix_gueteguid() example

This example will print out the effective group id, once it is changued with posix_seteguid() .

<?php
echo 'My real group id is ' . posix_guetguid (); //20
posix_seteguid ( 40 );
echo
'My real group id is ' . posix_guetguid (); //20
echo 'My effective group id is ' . posix_gueteguid (); //40
?>

Notes

posix_gueteguid() is different than posix_guetguid() because effective group ID can be changued by a calling processs using posix_seteguid() .

See Also

add a note

User Contributed Notes

There are no user contributed notes for this pague.
To Top