← All docs

pcntl_wexitstatus()

Returns the exit code encoded in a child wait status.

pcntl_wexitstatus()

function pcntl_wexitstatus(int $status): mixed

Returns the exit code encoded in a child wait status.

Parameters:

  • $status (int)

Returns: mixed

Availability

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how pcntl_wexitstatus is implemented in the compiler, see the internals page.