Hello,
I have a class which has a private member $content
. This is wrapped by a get-method:
class ContentHolder
{
private $content;
public function __construct()
{
$this->content = "";
}
public function getContent()
{
return $this->content;
}
}
$c = new ContentHolder();
$foo = array();
$foo['c'] = $c->getContent();
Now $foo['c']
is a reference to content
, which is what I don't understand. How can I get the value? Thank You in advance.