Thread: Paypal SDK
View Single Post
Old 05-04-2006, 05:35 AM   #2 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 734
DJMaze is on a distinguished road
'=&' makes a reference (in C known as pointer) to a data object in memory.
This way you don't duplicate the memory but share the same memory to prevent resource increase.

In case of a Object like
PHP Code:
<?php
$ref 
=& new Object();
you are working on the base object and NOT a instance.
So if you create an object like this and create another instance, you actualy get all the values of $ref.
DJMaze is offline   Reply With Quote