PHP错误:Only variables should be passed by reference
程序员文章站
2022-05-06 09:08:24
...
PHP错误:Only variables should be passed by reference
原因在于PHP5.3版本开始,array_shift不支持函数返回
$tag_sel = array_shift(explode(' ', $tag));
上述写法改成下面写法
$tag_tmp = (explode(' ', $tag)); $tag_sel = array_shift($tag_tmp); //$tag_sel = array_shift(explode(' ', $tag));
推荐阅读
-
php 出现Strict Standards: Only variables should be passed by reference in的解决方法
-
Strict Standards: Only variables should be passed
-
ECShop出现Strict Standards: Only variables should be passed by reference in的解决方法
-
php Note: empty() only checks variables as anything错误_PHP教程
-
Strict Standards: Only variables should be passed by referen_PHP教程
-
[PHP]Only variables should be passed by reference
-
startbbs"烧饼BBS"安装出现错误“Only variable references should be returned by reference”
-
PHP报错:Strict Standards: Only variables should be passed by reference in .
-
startbbs"烧饼BBS"安装出现错误“Only variable references should be returned by reference”
-
ecshop Strict standards: Only variables should be passed by