| 
 | posix_getpwnamReturn 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"
)
See Also
 
 |