PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

posix_getppid> <posix_getpgrp
Last updated: Fri, 05 Sep 2008

view this page in

posix_getpid

(PHP 4, PHP 5)

posix_getpidReturn the current process identifier

Description

int posix_getpid ( void )

Return the process identifier of the current process.

Return Values

Returns the identifier, as an integer.

Examples

Example #1 Example use of posix_getpid()

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

See Also



add a note add a note User Contributed Notes
posix_getpid
rfbednar at computer dot org
07-Aug-2008 05:33
This doesn't work with XAMPP under windows xp.

posix_getppid> <posix_getpgrp
Last updated: Fri, 05 Sep 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites