PHP Notice: Undefined index:解决方法

PHP Notice:  Undefined index:解决方法

PHP Notice: Undefined index: 解决方法

<pre>
if (empty(swoole_get_local_ip()['eth1'])) {

} else {

}
</pre>


加个exmpty就可以了

原文地址:https://www.cnblogs.com/newmiracle/p/11856230.html