首页 话题 小组 问答 好文 用户 我的社区 域名交易 唠叨

[函数]Swoole\Server\Port::on()函数—用法及示例

发布于 2025-05-10 22:07:52
0
42

适用版本(PECL swoole >= 1.9.0)

Swoole\Server\Port::on — 按事件注册回调函数。

说明

public Swoole\Server\Port::on(string $event_name, callable $callback): ReturnType

参数
event_name
callback
返回值
评论
一个月内的热帖推荐
啊龙
Lv.1普通用户

9545

帖子

31

小组

3242

积分

赞助商广告
站长交流