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

posix_geteuid

Description

The posix_geteuid of POSIX for PHP returns the effective user ID of the current process.

Syntax

posix_geteuid(): int

Return

Returns the user id, as an int

Examples

1 · void

<?

$return = posix_geteuid();

echo $return;
10001

2 · posix_seteuid

<?

$user_id = 10000;

posix_seteuid($user_id);

$return = posix_geteuid();

echo $return;
10000