Server::$setting

最后更新于:2022-04-02 06:21:09

# Server::$setting `Server::set()`函数所设置的参数会保存到`Server->$setting`属性上。在回调函数中可以访问运行参数的值。 示例: ~~~ $serv = new Swoole\Server('127.0.0.1', 9501); $serv->set(array('worker_num' => 4)); echo $serv->setting['worker_num']; ~~~
';