-
<b>Strict Standards</b>: Only variables should be passed by reference in <b>
1.如果在使用end()时出现这个错误,那么原因可能是参数的问题,让我们找到手册中的end()函数API,如图所示;
-
2.可以看到end的参数是一个引用(reference),如果把一个变量的引用作为一个参数传给函数,是没有任何问题的,但是如果把一个变量的分割表达式直接作为参数传给end()函数,就会出现这个错误;
-
3.解决方案:
<1>$temp = explode(',', $example);
return end($temp);
先将需要分割的变量分割成数组,保存到一个临时变量中,然后使用end()函数
<2>更改错误配置:
error_reporting(E_ALL ^ E_NOTICE);
-
4
4.在安装Ecshop时,可能会报出如下错误:
Strict Standards: Only variables should be passed by reference in E:\Tools\ECShop_V2.7.3_UTF8_release1106\upload\includes\cls_template.phpon line 418
###########################################
### 解决方案同上 ###
###########################################
相关文章
- Matlab中newff函数使用方法和搭建BP神经网络的方法
- idea 转换大小写在IntelliJ IDEA中,转换文本的大小写可以通过以下方法实现:使用快捷键Ctrl+Shift+U
- mysql+php实现选课系统中遇到的问题及解决方法
- Idea springBoot配置器中 @Configuration 注解中使用 Autowired 注入报错
- 【Docker 运维】Java 应用在 Docker 容器中启动报错:`unable to allocate file descriptor table`-二、判断与排查方法
- PostgreSQL中 nullif函数和coalesce函数使用方法
- SQL Server中变量的声明和使用方法
- 【转载】 C#中ArrayList使用ToArray方法转换为数组
- Java中super的几种使用方法并与this的差别
- C语言中的 pow 函数 使用方法及注意事项,和常见报错原因,且分享实战中的使用