title: How to insert multiple rows in a mysql database at once with prepared statements?
body: <p>I am trying to use staticsan´s answer in <a href="https://stackoverflow.com/questions/779986/insert-multiple-rows-via-a-php-array-into-mysql">this question</a> for prepared statements.
  Lets take this example:</p>
  
  <pre><code>$stmt = $mysqli-&gt;prepare("INSERT INTO something (userid, time, title) VALUES (?, ?, ?)");
  $stmt-&gt;bind_param('iis', $userid, time(), $title);
  $stmt-&gt;execute();
  </code></pre>
  
  <p>In staticsan´s answer imploding the array is adding all the values into the mysql statement so that in the end we can insert multiple data into the database with just one statement.
  How would this be done in my example?</p>