Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<getlastmodgetmyinode>
^PHP Options/Info FunctionsLast updated: Mon, 26 Oct 2026

getmygid

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

getmygid — Get PHP script owner's GID

Description

function getmygid(): int|false

Gets the group ID of the current script.

Parameters

This function has no parameters.

Return Values

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

See Also


<getlastmodgetmyinode>
^PHP Options/Info FunctionsLast updated: Mon, 26 Oct 2026