posix_getpid

(PHP 4, PHP 5, PHP 7)

posix_getpid���ص�ǰ���� id

˵��

posix_getpid ( void ) : int

Return the process identifier of the current process. ���ص�ǰ���̵� id

����ֵ

���ؽ��� id �ţ������ͣ�integer����

����

Example #1 posix_getpid() ��ʹ������

<?php
echo posix_getpid(); //8805
?>

�μ�

  • posix_kill() - Send a signal to a process
  • POSIX man page GETPID(2)