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