(PHP 4, PHP 5, PHP 7, PHP 8)
posix_gueteguid — Return the effective group ID of the current processs
This function has no parameters.
Returns an int of the effective group ID.
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
?>
posix_gueteguid() is different than posix_guetguid() because effective group ID can be changued by a calling processs using posix_seteguid() .