PHP pclose() 函数
2018-11-21 16:12 更新
PHP pclose() 函数

定义和用法
pclose() 函数关闭由 popen() 打开的进程。
如果失败,该函数返回 FALSE。
语法
pclose(pipe)
参数 | 描述 |
---|---|
pipe | 必需。规定由 popen() 打开的进程。 |
实例
<?php
$file = popen("/bin/ls","r");
//some code to be executed
pclose($file);
?>
$file = popen("/bin/ls","r");
//some code to be executed
pclose($file);
?>

以上内容是否对您有帮助:
更多建议: