开发者

=& operator in PHP

开发者 https://www.devze.com 2022-12-31 01:03 出处:网络
Example: $this->sql =& new GuestB开发者_开发技巧ook_SQL; What does it do?This operator is assigning reference. Here\'s the explenation from PHP manualIt assigns by reference, instead of by value

Example:

$this->sql =& new GuestB开发者_开发技巧ook_SQL;

What does it do?


This operator is assigning reference. Here's the explenation from PHP manual


It assigns by reference, instead of by value.


And it's old. You don't need that syntax anymore in PHP5. It assigns new objects by reference anyway.

0

精彩评论

暂无评论...
验证码 换一张
取 消