← All docs

pcntl_alarm()

Schedules a SIGALRM and returns the prior alarm's remaining seconds.

pcntl_alarm()

function pcntl_alarm(int $seconds): int

Schedules a SIGALRM and returns the prior alarm’s remaining seconds.

Parameters:

  • $seconds (int)

Returns: int

Availability

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

Internals

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