tags:

views:

110

answers:

3
+3  Q: 

=& operator in PHP

Example:

$this->sql =& new GuestBook_SQL;

What does it do?

+2  A: 

It assigns by reference, instead of by value.

Tomalak
+9  A: 

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

RaYell
+1  A: 

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

mario