快捷搜索:   服务器  PHP  IIS  安全  linux 安全

php警告Creating default object from empty value的解决办法

在php7+中警告Creatingdefaultobjectfromemptyvalue 源代码 $res=null;$res-domain=null;$res-host=null; 这是因为PHP7更严格,null并不是一个object因此报错,有两种方法 针对数组使用 $res=array();$res-domain=array();$res-host=arr...

    共1页/1条