1. 云栖社区>
  2. PHP教程>
  3. 正文

PHP报错:Strict Standards: Only variables should be passed by refer

作者:用户 来源:互联网 时间:2017-12-01 20:19:31

phpStrictonlyshouldrefer

PHP报错:Strict Standards: Only variables should be passed by refer - 摘要: 本文讲的是PHP报错:Strict Standards: Only variables should be passed by refer,       在测试中,遇到PHP日志中报类似下面的错误信息:       Strict Standards: Only variables should be passed by reference in ...       在Goog


      在测试中,遇到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 refer的全部内容,在云栖社区的博客、问答、公众号、人物、课程等栏目也有其他相关内容,欢迎继续使用右上角搜索按钮进行搜索php , Strict , only , should , , , refer ,以便于您获取更多的相关知识。