PHP pclose() Function

The pclose() function closes a pipe opened by popen().Returns the termination status of the process that was run. In case of an error then -1 is returned.

int pclose ( resource $handle )

Closes a file pointer to a pipe opened by popen().

Example -

ParameterDescription
handleThe file pointer must be valid, and must have been returned by a successful call to popen()