Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

pcntl_wifexited

Description

The pcntl_wifexited of PCNTL for PHP checks if status code represents a normal exit.

Syntax

pcntl_wifexited(
    int $status
): bool

Parameters

status

The status parameter is the status parameter supplied to a successful call to pcntl_waitpid().

Return

Returns true if the child status code represents a normal exit, false otherwise.

Examples

1 · status

<?

$process_id = 0;

pcntl_waitpid($process_id, $status);

$return = pcntl_wifexited($status);

var_export($return);
true
HomeMenu