PHP 8.3.4 Released!

getmygid

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

getmygidPHP スクリプトの所有者の GID を得る

説明

getmygid(): int|false

現在のスクリプトのグループ ID を取得します。

パラメータ

この関数にはパラメータはありません。

戻り値

現在のスクリプトのグループ ID を返します。またはエラー時に false を返します。

参考

  • getmyuid() - PHP スクリプト所有者のユーザー ID を取得する
  • getmypid() - PHP のプロセス ID を取得する
  • get_current_user() - 現在の PHP スクリプトの所有者の名前を取得する
  • getmyinode() - 現在のスクリプトの inode を取得する
  • getlastmod() - 最終更新時刻を取得する

add a note

User Contributed Notes 1 note

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