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\Server::bindSwoole\Server::close>
^Swoole\ServerLast updated: Mon, 26 Oct 2026

Swoole\Server::clearTimer

swoole_timer_clear

(PECL swoole >= 1.9.0)

Swoole\Server::clearTimer -- swoole_timer_clear — Stop and destroy a timer.

Description

Object-oriented style (method):

public function Swoole\Server::clearTimer(int $timer_id): void

Procedural style:

function swoole_timer_clear(int $timer_id): void

Stop and destroy a timer

Parameters

timer_id

Return Values


<Swoole\Server::bindSwoole\Server::close>
^Swoole\ServerLast updated: Mon, 26 Oct 2026