首頁  >  文章  >  後端開發  >  PHP报错:Strict Standards: Only variables should be passed by reference in .

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

WBOY
WBOY原創
2016-06-13 13:01:44793瀏覽

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

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn