title: PHP PDO MySQL IN (?,?,?
body: <p>I want to write a MySQL statement like:</p>
  
  <pre><code>SELECT * FROM someTable WHERE someId IN (value1, value2, value3, ...)
  </code></pre>
  
  <p>The trick here is that I do not know ahead of time how many values there will be in the IN().</p>
  
  <p>Obviously I know I can generate the query on the go with string manipulations, however since this will run in a loop, I was wondering if I could do it with a PDO PreparedStatement.</p>
  
  <p>Something like:</p>
  
  <pre><code>$query = $PDO-&gt;prepare('SELECT * FROM someTable WHERE someId IN (:idList)');
  $query-&gt;bindValue(':idList', implode(',', $idArray));
  </code></pre>
  
  <p>Is that possible?</p>