PHP Notice: Undefined index:解决方法
PHP Notice: Undefined index: 解决方法
<pre> if (empty(swoole_get_local_ip()['eth1'])) {
} else { }</pre>
加个exmpty就可以了