Notice: Only variables should be passed by reference错误解决
## 学习就是不断填坑
肇事现场:
$str ='123@163.com';
$host=array_pop(explode('@', $str));
echo $host;
引发的错误:
**错误说明:**由于php的数组操作函数array_pop()是引用传参,而这里直接使用函数的返回值作为参数,所以引发了通知级别的报错!函数具体说明...
原创
2020-02-26 23:30:05 ·
1286 阅读 ·
0 评论