牛牛在线工具

Swoole\Http\Server::on()

收录 8868 个 PHP 函数,含用途说明与用法示例。

Swoole\Http\Server::on()

通过事件名称绑定回调函数到HTTP服务器。

适用版本(PECL swoole >= 1.9.0) Swoole\Http\Server::on — 通过事件名称绑定回调函数到HTTP服务器。 说明 public Swoole\Http\Server::on(string $event_name, callable $callback): void 通过事件名称绑定回调函数到HTTP服务器。 参数 event_name callback 返回值