Your question was already being addressed in the first thread you
started.
--
Curtis
$email = str_replace('sig.invalid', 'gmail.com', $from);
I would redesign my class hierarchy. If you have that problem, you have
a basic design problem, as I said before.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstu...@attglobal.net
==================
Jerry could he use something like;
create a variable to hold the object and cross update when he makes changes
$person=new person();
$object1=new object_test();
$object2=new otherobject();
$object1->person=$object2->person=$person;
$person->name='fred';
$object1->person=$object2->person=$person;
or even use pointers to point at the same data?
$person=new person();
$object1=new object_test();
$object2=new otherobject();
$object1->person=$object2->person=& $person;
$person->name='fred'; //should update both objects
regards trookat
He could use a reference, for instance. But the fact he needs to do it
points to a severe design problem.
Would you try to share the same steering wheel between two automobiles?
That's effectively what he's trying to do in his classes.