Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

posix_getuid

Description

The posix_getuid of POSIX for PHP returns the real user ID of the current process.

Syntax

posix_getuid(): int

Return

Returns the user id, as an int

Examples

1 · void

<?

$return = posix_getuid();

echo $return;
10001

2 · posix_setuid

<?

$user_id = 10000;

posix_setuid($user_id);

$return = posix_getuid();

echo $return;
10000
HomeMenu