title: private var does not work as expected in a class php
body: <p>In the example below I receive an error stating the value of <code>$foo-&gt;_test</code> is not accessible since it is private.  What am I doing wrong?</p>
  
  <pre><code>&lt;?php
  $foo = new Bar;
  $foo-&gt;test();
  print_r( $foo-&gt;_test );
  
  class Foo
  {
      private $_test = array();
  }
  
  
  class Bar extends Foo
  {
      public function test()
      {
          $this-&gt;_test = 'opa';
      }
  }
  ?&gt;
  </code></pre>
  
  <p>Any help is appreciated.</p>