title: public function __construct() in php7 -- Way beyond my grasp
body: <p>I'm absolutely lost here.. i've read through previous questions and answers but all i do is break the code even more.</p>
  
  <p>This obviously no longer works in php7, so i'm trying (and failing) to get this to work. It's probably a slap-head for most of the folks here, but how do i get this to work in php7?  Thanks.</p>
  
  <pre><code>    public function __construct() {
          $arrConfig = include './config.php';
          $this-&gt;objDB = mysql_connect($arrConfig['db']['host'],   $arrConfig['db']['username'], $arrConfig['db']['password']);
          mysql_select_db($arrConfig['db']['dbname'], $this-&gt;objDB);
      }
  </code></pre>
  
  <p>results in the following error.</p>
  
  <pre><code>    Fatal error: Uncaught Error: Call to undefined function mysql_connect()
  </code></pre>
  
  <p>cheers.</p>