title: What is the difference between mysqli::real_connect and new mysqli object in connecting database?
body: <p>I'm using this method to connect to <code>mysql</code> db :</p>
  
  <pre><code>$this-&gt;_Con = new mysqli($this-&gt;_DB['Server'],$this-&gt;_DB['User'],$this-&gt;_DB['Pass'],$this-&gt;_DB['DB']);
  </code></pre>
  
  <p>What is the difference when I connect using this method:</p>
  
  <pre><code>$this-&gt;_Con = mysqli_init();
  $this-&gt;_Con-&gt;real_connect($this-&gt;_DB['Server'],$this-&gt;_DB['User'],$this-&gt;_DB['Pass'],$this-&gt;_DB['DB']);
  </code></pre>