[PHP] Object Copying

2002-01-10 Thread Ken Kinder
As we all know, this copies an object in PHP: $obj2 = $obj1 Assuming $obj1 is an object (of a class). I want this never, ever to happen unless I want it to. All the time, I run into something where PHP made a copy of my object for X odd reason -- I pass an object to a function, I put

Re: [PHP] Object Copying

2002-01-10 Thread Jimmy
Hi Ken, As we all know, this copies an object in PHP: $obj2 = $obj1 Preferable a way to fix PHP not to copy the object, but the reference. this will do want you want: $obj2 = $obj1; -- Jimmy Always keep a cool head and a warm heart -- PHP General Mailing