posix_initgroups> <posix_getsid
Last updated: Fri, 24 Feb 2012

posix_getuid

(PHP 4, PHP 5)

posix_getuidReturn the real user ID of the current process

Descrição

int posix_getuid ( void )

Return the numeric real user ID of the current process.

Valor Retornado

Returns the user id, as an integer

Exemplos

Exemplo #1 Example use of posix_getuid()

<?php
echo posix_getuid(); //10000
?>

Veja Também

  • posix_getpwuid() - Return info about a user by user id
  • POSIX man page GETUID(2)



User Contributed Notes
posix_getuid
chris at ocportal dot com
30-Nov-2008 04:35
Note that this function is not defined on Windows PHP.

posix_initgroups> <posix_getsid
Last updated: Fri, 24 Feb 2012