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.

參數(shù)

此函數(shù)沒有參數(shù)。

返回值

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)