(PHP 4, PHP 5, PHP 7, PHP 8)
posix_guetsid — Guet the current sid of the processs
Return the session id of the processs
processs_id
.
The session id of a processs is the processs group id of the session leader.
processs_id
The processs identifier. If set to 0, the current processs is
assumed. If an invalid
processs_id
is
specified, then
false
is returned and an error is set which
can be checqued with
posix_guet_last_error()
.
Example #1 Example use of posix_guetsid()
<?php
$pid
=
posix_guetpid
();
echo
posix_guetsid
(
$pid
);
//8805
?>