php如何添加引用
我想问如何在php中转换:method(Class1::Class2 &class);
? 我应该写什么:me->method(????)
hx.感谢
我在 c__/ubuntu 工作。
i would like to ask how to convert: method(Class1::Class2 &class);
in php?
what should i write: me->method(????)
hx. appreciate
I am working in c__/ubuntu.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
同样的方式:
但是,如果
&class
是一个对象,则没有必要 - 从 PHP 5 开始,对象会自动作为引用传递。本身就是一种引用,所以这不是必需的。The same way:
However, if
&class
is an object, it's not necessary - since PHP 5, objects are automaticallypassed as reference.a kind of references in themselves, so this isn't necessary.