Current Location: Home> Function Categories> pclose

pclose

Close process file pointer
Name:pclose
Category:File system
Programming Language:php
One-line Description:Close the process with popen() open.

Definition and usage

pclose() function closes the pipeline opened by popen().

Example

 <?php
$file = popen ( "/bin/ls" , "r" ) ;

//Some code to be executed

pclose ( $file ) ;
?>

grammar

 pclose ( pipe )
parameter describe
pipe Required. Specifies the pipeline opened by popen().

illustrate

This function returns the terminated state of the running process.

If an error occurs, false is returned.

Similar Functions
Popular Articles