OOP =&

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
mickd
Forum Contributor
Posts: 397
Joined: Tue Jun 21, 2005 9:05 am
Location: Australia

OOP =&

Post by mickd »

hi, i was wondering what the difference between

Code: Select all

$variable =& new ClassName();
and

Code: Select all

$variable = new ClassName();
similarly, whats the difference between

Code: Select all

$a = 'blah';
$a =& $b;
and

Code: Select all

$a = 'blah';
$b = $a;
wouldnt $a and $b be the same in both cases?

thanks.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Post Reply