=&安培;在创建新对象时 [英] =& when creating new object

查看:42
本文介绍了=&安培;在创建新对象时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始使用面向对象的PHP编码,我经常看到

以下(这个例子来自wiki):


$ wakka =&新的Wakka($ wakkaConfig);


究竟是什么=&,为什么它与=不同?

I am just starting to use Object Oriented PHP coding, and I am seeing
quite often the following (this example taken from a wiki):

$wakka =& new Wakka($wakkaConfig);

What exactly is the =&, and why is it different from = ?

推荐答案

wakka =&新的Wakka(
wakka =& new Wakka(


wakkaConfig);


究竟是什么=&,为什么它与=?

wakkaConfig);

What exactly is the =&, and why is it different from = ?


.. oO(Joe)
..oO(Joe)

>我刚刚开始使用面向对象的PHP编码,我经常看到以下(这个例子来自维基):

>I am just starting to use Object Oriented PHP coding, and I am seeing
quite often the following (this example taken from a wiki):


这篇关于=&安培;在创建新对象时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆