posix_getpwuid
PHP 4, PHP 5, PHP 7, PHP 8
posix_getpwuid - Return info about a user by user id
Code Examples
Example #1 Example use of posix_getpwuid
Result: Array
(
[name] => tom
[passwd] => x
[uid] => 10000
[gid] => 42
[gecos] => "tom,,,"
[dir] => "/home/tom"
[shell] => "/bin/bash"
)