Menu Riverview Church

PCLOSE

Closes process file pointer

SYNTAX

pclose ( resource $handle ) : int

PARAMETERS

handle

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

RETURN

Returns the termination status of the process that was run. In case of an error then -1 is returned.

Note: If PHP has been compiled with --enable-sigchild, the return value of this function is undefined.

EXAMPLES


PHP