PHP的=&操作员 [英] PHP's =& operator
本文介绍了PHP的=&操作员的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这两个PHP语句是否都在做相同的事情?:
Are both these PHP statements doing the same thing?:
$o =& $thing;
$o = &$thing;
推荐答案
是的,它们都是完全相同的东西.它们只是获取对象的引用,并在变量$o
中对其进行引用.请注意,thing
应该是变量.
Yes, they are both the exact same thing. They just take the reference of the object and reference it within the variable $o
. Please note, thing
should be variables.
这篇关于PHP的=&操作员的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文