proc_close

Supported Versions: PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8
Close a process opened by proc_open() and return the exit code of that process
<?php proc_close(resource $process): int
<?php         $info = stream_get_contents($pipes[1]);

        fclose($pipes[1]);

        fclose($pipes[2]);

        proc_close($process);



        return $info;

    }