牛牛在线工具

Swoole\Server\Port::on()

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

Swoole\Server\Port::on()

按事件注册回调函数。

适用版本(PECL swoole >= 1.9.0) Swoole\Server\Port::on — 按事件注册回调函数。 说明 public Swoole\Server\Port::on(string $event_name, callable $callback): ReturnType 参数 event_name callback 返回值