Can I bind an array to an IN() condition in a PDO query?

I’m curious to know if it’s possible to bind an array of values to a placeholder using PDO. The use case here is attempting to pass an array of values for use with an IN() condition. I’d like to be able to do something like this: <?php $ids=array(1,2,3,7,8,9); $db = new PDO(…); $stmt = $db->prepare( … Read more