title: zend framework get last insert id of multi row insert using execute
body: <p>How would I get the last inserted ID using a multirow insert?
  Here is my code:</p>
  
  <pre><code>$sql='INSERT INTO t (col1, col2, col3) VALUES (1, 2, 3), (4, 5, 6), (7, 8, 9)'; // example
  $stmt = $contactsTable-&gt;getAdapter()-&gt;prepare($sql);
  $stmt-&gt;execute(); 
  $rowsAdded=$stmt-&gt;rowCount(); // mysql_affected_rows
  $lastId=$stmt-&gt;lastInsertId();
  echo '&lt;br&gt;Last ID: '.$lastId;
  </code></pre>
  
  <p>Also, is there a method in ZF to get the next insert id before an insert?</p>
  
  <p>thanks</p>