Return the real user ID of the current process

posix_getuid

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

posix_getuidReturn the real user ID of the current process

說明

posix_getuid(): int

Return the numeric real user ID of the current process.

參數

此函式沒有參數。

返回值

Returns the user id, as an int

範例

示例 #1 Example use of posix_getuid()

<?php
echo posix_getuid(); //10000
?>

參見

  • posix_getpwuid() - Return info about a user by user id
  • POSIX man page GETUID(2)

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *