欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

PHP报错:Strict Standards: Only variables should be passed by reference in .

程序员文章站 2022-05-11 19:03:35
...
PHP报错:Strict Standards: Only variables should be passed by reference in ...

????? 在测试中,遇到PHP日志中报类似下面的错误信息:

????? Strict Standards: Only variables should be passed by reference in ...


????? 在Google上找到下面的web:

????? “Strict Standards: Only variables should be passed by reference” error

????? 其中,回答者shiplu.mokadd.im对解决方式给出了简洁的解释,其中提到:


The following things can be passed by reference:


- Variables, i.e. foo($a)
- New statements, i.e. foo(new foobar())
- [References returned from functions][2]


????? 更多的内容,参考http://www.php.net/manual/en/language.references.pass.php

PHP报错:Strict Standards: Only variables should be passed by reference in .

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。

相关文章

相关视频