title: How to create global configuration file?
body: <p>Is there any possibility to create a configuration file with global variables that are visible inside the class? Something similar to this:</p>
  
  <p>config.php:</p>
  
  <pre><code>$config['host_address'] = 'localhost';
  $config['username '] = 'root';
  $config['password'] = 'root';
  $config['name'] = 'data';
  </code></pre>
  
  <p>db.php:</p>
  
  <pre><code>include('config.php');
  class DB
  {
      private $_config = array($config['host_address'], $config['username'], $config['password'], $config['name']);
      ...
  </code></pre>
  
  <p>Current property:</p>
  
  <pre><code>private $ _config = array();
  </code></pre>
  
  <p>I don't want to transmit through the constructor to my Singleton database connector:</p>
  
  <pre><code>DB::getInstance(array('localhost', 'root', 'root', 'data'));
  </code></pre>