title: Initializing static curl in class
body: <p>So I have a class for curl myCurl and I would like to use it for my 2 other classes but in those classes I want myCurl to only have one instance / be static so all objects of those other classes will use the same curl object.</p>
  
  <pre><code>class mycurl { 
     ...
  }
  </code></pre>
  
  <p>And the class that I want to have just one instance of MyCurl</p>
  
  <pre><code>class Company{
  private static $curl=new Mycurl();
  ...
  }
  </code></pre>
  
  <p>This doesn't work <code>syntax error, unexpected 'new' (T_NEW)</code></p>