What is =&?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Kadanis
Forum Contributor
Posts: 180
Joined: Tue Jun 20, 2006 8:55 am
Location: Dorset, UK
Contact:

What is =&?

Post by Kadanis »

Sorry for the really basic post, but I haven't been able to find this in google etc.

I've noticed the =& in a lot of OOP PHP especially during initialisation

i.e.

Code: Select all

$foo =& new Bar();

$thing =& $foo->get_bar();
What is the =& for? and how does it differ from just =

Thanks
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

User avatar
Kadanis
Forum Contributor
Posts: 180
Joined: Tue Jun 20, 2006 8:55 am
Location: Dorset, UK
Contact:

Post by Kadanis »

thanks
Post Reply