title: PHP5. Two ways of declaring an array as a class member
body: <p>When declaring an array as a class member, which way should it be done?</p>
  
  <pre><code>class Test1 {
      private $paths = array();
  
      public function __construct() {
          // some code here
      }
  }
  </code></pre>
  
  <p>or</p>
  
  <pre><code>class Test2 {
      private $paths;
  
      public function __construct() {
          $this-&gt;paths = array();
          // some code here
      }
  }
  </code></pre>
  
  <p>Which one is better in terms of good practices and performance? What would you recommend?</p>