[SOLVED] PHP 4 Object question
Posted: Wed Mar 02, 2005 8:54 am
Hi,
If I do the following
I have two separate objects. Changing the values of attributes in A for example does not change the attributes in B.
What I would like is two references to the object created in the first line. How do I go about doing that in PHP4 syntax?
Many thanks.
If I do the following
Code: Select all
$objectA = new MyObject;
$objectB = $objectA;What I would like is two references to the object created in the first line. How do I go about doing that in PHP4 syntax?
Many thanks.