title: PHP - define static array of objects
body: <p>can you initialize a static array of objects in a class in PHP? Like you can do </p>
  
  <pre><code>class myclass {
      public static $blah = array("test1", "test2", "test3");
  }
  </code></pre>
  
  <p>but when I do </p>
  
  <pre><code>class myclass {
      public static $blah2 = array(
          &amp;new myotherclass(),
          &amp;new myotherclass(),
          &amp;new myotherclass()
      );
  }
  </code></pre>
  
  <p>where myotherclass is defined right above myclass.
  That throws an error however; is there a way to achieve it?</p>