My bad, that was a typo... I changed it to this:
<?
class class1{
var $outMsg;
function class1(){
$this->outMsg = "";
}
}
class class2{
var $class1_instance;
function doSomething(){
// do something...
$this->class1_instance->outMsg = "NEW MSG";
}
}
$c1 = new class1();
$c1->outMsg = "OLD MSG";
$c2 = new class2();
$c2->class1_instance = $c1;
$c2->doSomething();
echo $c1->outMsg; // returns "OLD MSG"
?>
... and it still doesn't work. I'm sure there's a way to do this... I'm rather new to PHP... any help would be appreciated, thanks
Scott Zagar