I've a confusing issue here...
class A
{
var $ID;
function GetID() { return $this->ID; }
function PutID($newID) { $this->ID=$newID; }
}
Class B
{
var $ObjA;
function B() { $this->ObjA=new A; }
function &GetObjA() { return $this->ObjA; }
}
$First=new B();
$ObjA=&$First->GetObjA();
$ObjA->PutID("Testing");
$Obj=&First->GetObjA();
echo $Obj->GetID();
It seems that blank is returned, meaning that the method PutID() didn't seems to set the value in object First.
Any clue?
Thanks!