title: Notice: Array to string conversion - Why?
body: <p>Hi im trying to execute the following PHP code, however im receiving an error. Im passing a reference into the core class, which i want to assign to a variable within the classes scope.. </p>
  
  <p>Notice: Array to string conversion</p>
  
  <p>Thanks in advance.. </p>
  
  <pre><code>$core = new core($config);
  $core-&gt;execute();   
  </code></pre>
  
  <p>
  
  <pre><code>class core
  {
     private $config;
  
     public function __construct(&amp;$config)
     {
        $this-&gt;$config = $config;
     }
  
     public function execute()
     {
        $this-&gt;set_path();
     }
  
     private function set_path()
     {
        return true;      
     }  
  }
  </code></pre>