title: Why do we close result in Mysqli
body: <p>Why are we closing the $result </p>
  
  <pre><code>    $mysqli = new mysqli("localhost", "root", "root", "test");
      if ($mysqli-&gt;connect_errno) {
          echo "Failed to connect to MySQL: " . $mysqli-&gt;connect_error;
      }
  
      if ($result = $mysqli-&gt;query("Select * from user")) {
          while ($row = $result-&gt;fetch_object())
          {
              //var_dump($row);
          }
          $result-&gt;close();
      }   
  </code></pre>