Page 1 of 1

Difference between

Posted: Wed Oct 08, 2008 4:41 am
by mudgil.gaurav
Hi

Can any one brief me what is the difference between

$obj =& new Class();

AND

$obj = new Class();

Re: Difference between

Posted: Wed Oct 08, 2008 4:47 am
by onion2k
Technically the first one is a reference and the second is a copy, but as both will be initialising a new instance there won't actually be any difference between them.