posix_getpwuid
posix_getpwuid
Return info about a user by user id
**posix_getpwuid** int $user_id
Returns an of information about the user
referenced by the given user ID.
array
user_idThe user identifier.
Returns an associative array with the following elements:
The function returns false on failure.
**Voorbeeld: Example use of **
<?php
$userinfo = posix_getpwuid(10000);
print_r($userinfo);
?>
Array
(
[name] => tom
[passwd] => x
[uid] => 10000
[gid] => 42
[gecos] => "tom,,,"
[dir] => "/home/tom"
[shell] => "/bin/bash"
)
posix_getpwnam