array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'es', ), 'this' => array ( 0 => 'function.posix-getuid.php', 1 => 'posix_getuid', 2 => 'Devolver el ID real de usuario del proceso actual', ), 'up' => array ( 0 => 'ref.posix.php', 1 => 'Funciones POSIX', ), 'prev' => array ( 0 => 'function.posix-getsid.php', 1 => 'posix_getsid', ), 'next' => array ( 0 => 'function.posix-initgroups.php', 1 => 'posix_initgroups', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'es', 'path' => 'reference/posix/functions/posix-getuid.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(PHP 4, PHP 5, PHP 7, PHP 8)
posix_getuid — Devolver el ID real de usuario del proceso actual
Esta función no contiene ningún parámetro.
Devuelve el id de usuario, como valor de tipo int
Ejemplo #1 Ejemplo de uso de posix_getuid()
<?php
echo posix_getuid(); //10000
?>