PHP 8.1.0 RC 2 available for testing


(PHP 4 >= 4.1.0, PHP 5, PHP 7)

getmygidGet PHP script owner's GID


getmygid ( ) : int|false

Gets the group ID of the current script.

Valorile întoarse

Returns the group ID of the current script, or false on error.

A se vedea și

add a note add a note

User Contributed Notes 1 note

chris at ocproducts dot com
1 year ago
On Windows this will always return 0, except when "php -r" is used, when it returns 1.
To Top