Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
你能告诉我这段代码是做什么的,为什么它不能在 php7 上运行?
$var1 = test ($var2, &$var3);
错误代码: 已弃用:与其类同名的方法在 PHP 的未来版本中将不再是构造函数; 解析错误:语法错误,(文件名)中出现意外的“&”
在 PHP 5.3 中不推荐使用调用时传递引用:
http://php.net/manual/en/language.references.pass.php