PHP » GoLang |
login |
register |
about
|
|
posix_getpwnam(PHP 4, PHP 5, PHP 7) posix_getpwnam — Return info about a user by username Description
array posix_getpwnam
( string
$username
)Returns an array of information about the given user. Parameters
Return Values
On success an array with the following elements is returned, else
Examples
Example #1 Example use of posix_getpwnam()
<?phpThe above example will output something similar to:
Array
(
[name] => tom
[passwd] => x
[uid] => 10000
[gid] => 42
[gecos] => "tom,,,"
[dir] => "/home/tom"
[shell] => "/bin/bash"
)
|
more
Most requested
more
Last requests
|