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