title: MySQLi -> insert_id unable to return value
body: <p>I have this problem:</p>
  
  <p>I do query, no error, data writed to the DB.</p>
  
  <p>When i try to get the "insert_id" no data returned... but if i do "echo" function, write the value.</p>
  
  <p>Code:</p>
  
  <pre><code>$insert_id = (int)$this -&gt; conn -&gt; insert_id;
  echo '#'.$this -&gt; conn -&gt; insert_id.'#';
  print_r($this -&gt; conn);
  die($insert_id);
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>#12#
  mysqli Object
  (
      [affected_rows] =&gt; 1
      ...
      [connect_errno] =&gt; 0
      [connect_error] =&gt; 
      [errno] =&gt; 0
      [error] =&gt; 
      [field_count] =&gt; 0
      ...
      [info] =&gt; 
      [insert_id] =&gt; 12
      ...
  )
  </code></pre>
  
  <p>Why i cant get the ID from "$insert_id = (int)$this -> conn -> insert_id;" this!?</p>
  
  <p>Thanks!</p>