array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'function.getmypid.php', 1 => 'getmypid', ), 'up' => array ( 0 => 'ref.info.php', 1 => 'PHP Options/Info Functions', ), 'prev' => array ( 0 => 'function.getmyinode.php', 1 => 'getmyinode', ), 'next' => array ( 0 => 'function.getmyuid.php', 1 => 'getmyuid', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/info/functions/getmypid.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4, PHP 5, PHP 7, PHP 8)
getmypid — Gets PHP's process ID
This function has no parameters.
Returns the current PHP process ID, or false
on error.
Process IDs are not unique, thus they are a weak entropy source. We recommend against relying on pids in security-dependent contexts.