PCNTL_WEXITSTATUS(3) 1 PCNTL_WEXITSTATUS(3)
pcntl_wexitstatus - Returns the return code of a terminated child
SYNOPSIS
int pcntl_wexitstatus (int $status)
DESCRIPTION
Returns the return code of a terminated child. This function is only useful if pcntl_wifexited(3) returned TRUE.
PARAMETERS
o $status
-The $status parameter is the status parameter supplied to a successful call to pcntl_waitpid(3).
RETURN VALUES
Returns the return code, as an integer.
SEE ALSO
pcntl_waitpid(3), pcntl_wifexited(3).
PHP Documentation Group PCNTL_WEXITSTATUS(3)