Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Swoole\Timer::clearAllSwoole\Timer::info>
^Swoole\TimerLast updated: Mon, 26 Oct 2026

Swoole\Timer::exists

(PECL swoole >= 1.9.0)

Swoole\Timer::exists — Check if a timer is existed.

Description

public static function Swoole\Timer::exists(int $timer_id): bool

Checks whether a timer with the given ID exists in the current process.

Parameters

timer_id

The timer ID returned by Swoole\Timer::tick() or Swoole\Timer::after().

Return Values

Returns true if a timer with this ID exists in the current process, false otherwise.


<Swoole\Timer::clearAllSwoole\Timer::info>
^Swoole\TimerLast updated: Mon, 26 Oct 2026