PHP程序中以下代码:
$tag_sel = array_shift(explode(' ', $tag));
运行时有可能出现如下提示:
Strict Standards: Only variables should be passed by reference....
将 $tag_sel = array_shift(explode(' ', $tag)); 代码分开写,改为如下:
$tag_arr = explode(' ', $tag);
$tag_sel = array_shift($tag_arr);
再运行就应该不会出现上面的提示了。