proc_terminate()
The proc_terminate() function terminates a process opened by proc_open(). This is useful for stopping subprocesses.
proc_open()