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

Swoole\Server::getLastError

(PECL swoole >= 1.9.0)

Swoole\Server::getLastError — Get the error code of the most recent error.

Description

public function Swoole\Server::getLastError(): int

Parameters

This function has no parameters.

Return Values


<Swoole\Server::getClientListSwoole\Server::heartbeat>
^Swoole\ServerLast updated: Mon, 26 Oct 2026