[PHP] Understanding the = operator...

2002-10-25 Thread Chris Boget
Ok, let me see if I have this right: When you do: $var = new myClass(); $var instantiates and holds a copy of myClass. But when you do: $var = new myClass(); $var instantiates and references that instantiation? If so, then I'm curious - if you do: $var2 = new myClass(); and you modify

Re: [PHP] Understanding the = operator...

2002-10-25 Thread @ Edwin
Hello, Chris Boget [EMAIL PROTECTED] wrote: Ok, let me see if I have this right: When you do: $var = new myClass(); $var instantiates and holds a copy of myClass. But when you do: $var = new myClass(); $var instantiates and references that instantiation? If so, then I'm