您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息
免费发信息
三六零分类信息网 > 新余分类信息网,免费分类信息发布

PHP如何获得当前的进程id?

2024/5/22 8:14:52发布48次查看
php如何获得当前的进程id?
在php中,可以使用posix_getpid()来获得当前的进程id。
posix_getpid
posix_getpid — 返回当前进程 id
说明:
posix_getpid ( void ) : int
return the process identifier of the current process. 返回当前进程的 id
返回值:
返回进程 id 号,是整型(integer)。
示例:
<?phpecho posix_getpid(); //8805?>
注:posix_getpid在windows上不起作用。
推荐教程:php视频教程
新余分类信息网,免费分类信息发布

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录