PHP pclose() 函数

PHP 教程 · 2019-01-25 13:44:39

定义和用法

pclose() 函数关闭由 popen() 打开的进程。

如果失败,该函数返回 FALSE。

语法


pclose(pipe)


参数 描述
pipe 必需。规定由 popen() 打开的进程。

实例


<?php
$file = popen("/bin/ls","r");
//some code to be executed
pclose($file);
?>


点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html

查看所有标签

The Little MLer

The Little MLer

Matthias Felleisen、Daniel P. Friedman、Duane Bibby、Robin Milner / The MIT Press / 1998-2-19 / USD 34.00

The book, written in the style of The Little Schemer, introduces instructors, students, and practicioners to type-directed functional programming. It covers basic types, quickly moves into datatypes, ......一起来看看 《The Little MLer》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

随机密码生成器
随机密码生成器

多种字符组合密码

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具