function setDataObject(& $data)
{
$this->data=& $data;
}
I have this function in a class and it sets a reference to my database object.
how do i create a function that returns the object by reference?
i tried with no luck the following;
function getDataObject()
{
return &$this->data;
}
Any suggestions?
Thanks