Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<getmypidgetopt>
^PHP Options/Info FunctionsLast updated: Mon, 26 Oct 2026

getmyuid

(PHP 4, PHP 5, PHP 7, PHP 8)

getmyuid — Gets PHP script owner's UID

Description

function getmyuid(): int|false

Gets the user ID of the current script.

Parameters

This function has no parameters.

Return Values

Returns the user ID of the current script, or false on error.

See Also


<getmypidgetopt>
^PHP Options/Info FunctionsLast updated: Mon, 26 Oct 2026