title: Passing values to MySQL IN operation in PDO prepared statement?
body: <p>I have a form field that is returning a comma-delimited string that I want to pass in to a PHP PDO MySQL query IN operation, but the IN operation requires that the values be comma-delimited (as opposed to my <strong><em>string</em></strong> of delimited values).</p>
  
  <p>How do I do this?</p>
  
  <pre><code>$values = $_POST['values']; # '10,5,4,3' (string)
  $query = "SELECT * FROM table WHERE id IN (:values)";
  $data = array( ':values' =&gt; $values );
  </code></pre>